summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorMatthew Wong <wongma@protonmail.ch>2015-07-28 03:11:02 -0400
committerMatthew Wong <wongma@protonmail.ch>2015-08-14 17:36:44 -0400
commit02bfcf6c3f5ddd806dd9a92823926eced139842f (patch)
treed68ea46b5ce6993910d8a015e6a286a1f9ae9c9f /app/src/main/res
parenteced1dd314ba651f862396c340492c6f2d9da926 (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.xml12
-rw-r--r--app/src/main/res/values/strings.xml2
-rw-r--r--app/src/main/res/xml/autofill_config.xml8
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