aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Wong <wongma@protonmail.ch>2015-08-16 15:01:32 -0400
committerMatthew Wong <wongma@protonmail.ch>2015-08-16 15:01:32 -0400
commitce59194228dcc358168332e088eedce2a3635b89 (patch)
treeb54063449ee22556b8333707fe06c4d78ac4021e
parent640f6ff9bd2645382323b9375c57af11e5931d3b (diff)
More instructions/information
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/UserPreference.java3
-rw-r--r--app/src/main/res/layout/autofill_instructions.xml63
-rw-r--r--app/src/main/res/layout/fragment_autofill.xml8
-rw-r--r--app/src/main/res/values/strings.xml4
4 files changed, 72 insertions, 6 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/UserPreference.java b/app/src/main/java/com/zeapo/pwdstore/UserPreference.java
index b034ba82..8f8e8d66 100644
--- a/app/src/main/java/com/zeapo/pwdstore/UserPreference.java
+++ b/app/src/main/java/com/zeapo/pwdstore/UserPreference.java
@@ -15,6 +15,7 @@ import android.preference.PreferenceManager;
import android.provider.Settings;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
+import android.text.SpannableStringBuilder;
import android.view.MenuItem;
import android.view.accessibility.AccessibilityManager;
import android.widget.Toast;
@@ -204,7 +205,7 @@ public class UserPreference extends AppCompatActivity {
public boolean onPreferenceClick(Preference preference) {
new AlertDialog.Builder(callingActivity).
setTitle(R.string.pref_autofill_enable_title).
- setMessage(R.string.pref_autofill_enable_msg).
+ setView(R.layout.autofill_instructions).
setPositiveButton(R.string.dialog_ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
diff --git a/app/src/main/res/layout/autofill_instructions.xml b/app/src/main/res/layout/autofill_instructions.xml
new file mode 100644
index 00000000..82ad16d1
--- /dev/null
+++ b/app/src/main/res/layout/autofill_instructions.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ScrollView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_height="match_parent"
+ android:layout_width="match_parent">
+
+<LinearLayout android:orientation="vertical"
+ android:layout_height="fill_parent"
+ android:layout_width="fill_parent"
+ android:paddingLeft="24dp"
+ android:paddingRight="24dp"
+ android:paddingTop="20dp"
+ android:paddingBottom="20dp">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textSize="@dimen/abc_text_size_menu_material"
+ android:text="@string/pref_autofill_enable_msg"
+ android:id="@+id/textView"/>
+
+ <ImageView
+ android:layout_width="match_parent"
+ android:id="@+id/imageView"
+ android:src="@drawable/autofill_ins_1"
+ android:layout_marginTop="8dp"
+ android:layout_marginBottom="8dp"
+ android:layout_height="wrap_content"
+ android:adjustViewBounds="true"/>
+
+ <ImageView
+ android:layout_width="match_parent"
+ android:id="@+id/imageView2"
+ android:src="@drawable/autofill_ins_2"
+ android:layout_marginBottom="8dp"
+ android:layout_height="wrap_content"
+ android:adjustViewBounds="true"/>
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textSize="@dimen/abc_text_size_menu_material"
+ android:text="@string/pref_autofill_enable_msg2"
+ android:id="@+id/textView3"/>
+
+ <ImageView
+ android:layout_width="match_parent"
+ android:layout_height="114dp"
+ android:id="@+id/imageView3"
+ android:src="@drawable/autofill_ins_3"
+ android:layout_marginTop="8dp"
+ android:layout_marginBottom="8dp"/>
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textSize="@dimen/abc_text_size_menu_material"
+ android:text="@string/pref_autofill_enable_msg3"
+ android:id="@+id/textView4"/>
+
+
+</LinearLayout>
+</ScrollView> \ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_autofill.xml b/app/src/main/res/layout/fragment_autofill.xml
index af2b7017..a5b1ac90 100644
--- a/app/src/main/res/layout/fragment_autofill.xml
+++ b/app/src/main/res/layout/fragment_autofill.xml
@@ -3,10 +3,10 @@
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:paddingBottom="@dimen/activity_vertical_margin"
- android:paddingLeft="@dimen/activity_horizontal_margin"
- android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin">
+ android:paddingLeft="24dp"
+ android:paddingRight="24dp"
+ android:paddingTop="20dp"
+ android:paddingBottom="20dp">
<RadioGroup
android:layout_width="match_parent"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 447139fb..4047691f 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -118,7 +118,9 @@
<string name="pref_recursive_filter">Recursive filtering</string>
<string name="pref_recursive_filter_hint">Recursively find passwords of the current directory.</string>
<string name="pref_autofill_enable_title">Enable autofill</string>
- <string name="pref_autofill_enable_msg">Tap OK to go to Accessibility settings. Once there, tap Password Store under Services then tap the switch in the top right to turn it on or off.</string>
+ <string name="pref_autofill_enable_msg">Tap OK to go to Accessibility settings. There, tap Password Store under Services then tap the switch in the top right to turn it on or off.</string>
+ <string name="pref_autofill_enable_msg2">Once the service is on, a dialog will appear when you click on a password field in an app if a matching password for the app exists.</string>
+ <string name="pref_autofill_enable_msg3">Password Store attempts to match apps with passwords automatically. You can change this default setting and also matching settings per-app.</string>
<string name="pref_autofill_apps_title">Per-app settings</string>
<string name="pref_autofill_apps_hint">Customize autofill settings for specific apps.</string>
<string name="pref_autofill_default_title">Automatically match by default</string>