summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorFabian Henneke <FabianHenneke@users.noreply.github.com>2020-06-09 13:45:23 +0200
committerGitHub <noreply@github.com>2020-06-09 13:45:23 +0200
commit2fa03e3fa0bab743e65a8e5964ed510758b4a908 (patch)
tree918db1bd27527a8539654c868f3c4e0e798f5ded /app/src/main/res
parent02b7f5559dd1b2b1cb36cb0b1e8bb137d8815646 (diff)
Allow custom public suffixes for Autofill (#841)
Adds a preference that allows the user to specify domains that are then treated as additional public suffixes for the purposes of Autofill.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/values/strings.xml3
-rw-r--r--app/src/main/res/xml/preference.xml4
2 files changed, 7 insertions, 0 deletions
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index ffd10068..2e37b0eb 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -373,4 +373,7 @@
<string name="preference_default_username_title">Default username</string>
<string name="git_operation_remember_password">Remember password</string>
<string name="git_operation_hint_password">Password</string>
+ <string name="preference_custom_public_suffixes_title">Custom domains</string>
+ <string name="preference_custom_public_suffixes_summary">Autofill will distinguish subdomains of these domains</string>
+ <string name="preference_custom_public_suffixes_hint">company.com\npersonal.com</string>
</resources>
diff --git a/app/src/main/res/xml/preference.xml b/app/src/main/res/xml/preference.xml
index 9e56ce8f..0d71d6cc 100644
--- a/app/src/main/res/xml/preference.xml
+++ b/app/src/main/res/xml/preference.xml
@@ -21,6 +21,10 @@
app:key="oreo_autofill_default_username"
app:summary="@string/preference_default_username_summary"
app:title="@string/preference_default_username_title" />
+ <EditTextPreference
+ app:key="oreo_autofill_custom_public_suffixes"
+ app:summary="@string/preference_custom_public_suffixes_summary"
+ app:title="@string/preference_custom_public_suffixes_title" />
<Preference
app:key="autofill_apps"
app:title="@string/pref_autofill_apps_title" />