diff options
author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-05-12 01:43:03 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-11 22:13:03 +0200 |
commit | b16620b55c60181a0ae9b19ab880a47f4f958159 (patch) | |
tree | 3597ba59bcdf354d8fd6c38a8dd6b7c18c523092 /app/src/main/res | |
parent | 041cf00510a75042223d1857660fc7f1dff958ef (diff) |
Add setting for fallback username (#772)
* PasswordEntry: remove useless annotations
Turns out VisibleForTesting only applies for documentation purposes. Boo >:(
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* PasswordEntry: silence locale warning
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Add setting for fallback username
Fixes #763
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/values/strings.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/xml/preference.xml | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index db8491e8..f6bb751d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -370,4 +370,6 @@ <string name="snackbar_action_grant">Grant</string> <string name="pref_debug_logging_summary">Enable debug logging (requires app restart)</string> <string name="pref_debug_logging_title">Debug logging</string> + <string name="preference_default_username_summary">If Autofill is unable to determine a username from your password file or directory structure, it will use the value specified here</string> + <string name="preference_default_username_title">Default username</string> </resources> diff --git a/app/src/main/res/xml/preference.xml b/app/src/main/res/xml/preference.xml index e59e1c8c..af55295c 100644 --- a/app/src/main/res/xml/preference.xml +++ b/app/src/main/res/xml/preference.xml @@ -13,6 +13,10 @@ app:key="oreo_autofill_directory_structure" app:title="@string/oreo_autofill_preference_directory_structure" app:useSimpleSummaryProvider="true" /> + <EditTextPreference + app:key="oreo_autofill_default_username" + app:summary="@string/preference_default_username_summary" + app:title="@string/preference_default_username_title" /> <Preference app:key="autofill_apps" app:title="@string/pref_autofill_apps_title" /> |