aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-05-19 10:46:19 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-05-19 10:46:19 +0200
commitef27055434489aa09b1d4b0597249a869a505639 (patch)
treec4e6ace031e94fde82da3317ff4f215763f89701 /src/main/res
parent3f65b0e985db52a38b639ca8bbad9167b1cc8d1a (diff)
show password dialog when account was magic created
Diffstat (limited to 'src/main/res')
-rw-r--r--src/main/res/layout/dialog_show_password.xml19
-rw-r--r--src/main/res/menu/editaccount.xml5
-rw-r--r--src/main/res/values/strings.xml1
3 files changed, 25 insertions, 0 deletions
diff --git a/src/main/res/layout/dialog_show_password.xml b/src/main/res/layout/dialog_show_password.xml
new file mode 100644
index 00000000..dba0690c
--- /dev/null
+++ b/src/main/res/layout/dialog_show_password.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:padding="16dp" >
+
+ <TextView
+ android:id="@+id/password"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:typeface="monospace"
+ android:textSize="?attr/TextSizeHeadline"
+ android:fontFamily="monospace"
+ android:layout_gravity="center_horizontal"
+ android:textColor="@color/black87" >
+ </TextView>
+
+</LinearLayout> \ No newline at end of file
diff --git a/src/main/res/menu/editaccount.xml b/src/main/res/menu/editaccount.xml
index ef9f1732..9ab1788b 100644
--- a/src/main/res/menu/editaccount.xml
+++ b/src/main/res/menu/editaccount.xml
@@ -34,6 +34,11 @@
android:title="@string/mam_prefs"/>
<item
+ android:id="@+id/action_show_password"
+ android:showAsAction="never"
+ android:title="@string/show_password"/>
+
+ <item
android:id="@+id/action_change_password_on_server"
android:showAsAction="never"
android:title="@string/change_password"/>
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
index cb8aa303..aa5f5a38 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -640,4 +640,5 @@
<string name="presence_dnd">Busy</string>
<string name="secure_password_generated">A secure password has been generated</string>
<string name="device_does_not_support_battery_op">Your device does not support opting out of battery optimization</string>
+ <string name="show_password">Show password</string>
</resources>