diff options
author | Matthew Wong <wongma@protonmail.ch> | 2015-07-28 03:11:02 -0400 |
---|---|---|
committer | Matthew Wong <wongma@protonmail.ch> | 2015-08-14 17:36:44 -0400 |
commit | 02bfcf6c3f5ddd806dd9a92823926eced139842f (patch) | |
tree | d68ea46b5ce6993910d8a015e6a286a1f9ae9c9f /app/src/main/res | |
parent | eced1dd314ba651f862396c340492c6f2d9da926 (diff) |
Create app autofill service: a dialog pops up for all password fields & has a button to paste/set a password found in the store with name matching app's
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/autofill_layout.xml | 12 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/xml/autofill_config.xml | 8 |
3 files changed, 22 insertions, 0 deletions
diff --git a/app/src/main/res/layout/autofill_layout.xml b/app/src/main/res/layout/autofill_layout.xml new file mode 100644 index 00000000..0108160d --- /dev/null +++ b/app/src/main/res/layout/autofill_layout.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <Button + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/button" + android:layout_gravity="center"/> +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3a3d4061..825643bf 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -154,4 +154,6 @@ <string name="pwd_generate_button">Generate</string> <string name="category_string">"Category: "</string> + <!-- Autofill --> + <string name="autofill_description">Auto-fills login fields.</string> </resources> diff --git a/app/src/main/res/xml/autofill_config.xml b/app/src/main/res/xml/autofill_config.xml new file mode 100644 index 00000000..618442ab --- /dev/null +++ b/app/src/main/res/xml/autofill_config.xml @@ -0,0 +1,8 @@ +<accessibility-service xmlns:android="http://schemas.android.com/apk/res/android" + android:description="@string/autofill_description" + android:accessibilityEventTypes="typeViewFocused" + android:accessibilityFlags="flagDefault" + android:accessibilityFeedbackType="feedbackGeneric" + android:notificationTimeout="100" + android:canRetrieveWindowContent="true" + />
\ No newline at end of file |