diff options
author | glowinthedark <48893368+glowinthedark@users.noreply.github.com> | 2020-02-29 21:46:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-01 02:16:31 +0530 |
commit | 947e41105b3fdfb7ce9734fb25119c46695f7bba (patch) | |
tree | 74c63b130b262a06ea068e10ffc20c1dd69d4897 /app/src/main/res/xml | |
parent | bea3cd5457e331f04a9aeb5c99267f14908f5eaa (diff) |
Add xkpasswd-style password generator (#633)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/res/xml')
-rw-r--r-- | app/src/main/res/xml/preference.xml | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/app/src/main/res/xml/preference.xml b/app/src/main/res/xml/preference.xml index dfbb44a4..3d91cbfa 100644 --- a/app/src/main/res/xml/preference.xml +++ b/app/src/main/res/xml/preference.xml @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> +<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> <androidx.preference.PreferenceCategory android:title="@string/pref_git_title"> <androidx.preference.Preference android:key="git_server_info" @@ -48,6 +49,27 @@ android:title="@string/pref_key_title" /> </androidx.preference.PreferenceCategory> + <androidx.preference.PreferenceCategory android:title="@string/password_generator_category_title"> + <androidx.preference.ListPreference + android:key="pref_key_pwgen_type" + android:title="@string/xkpwgen_pref_gentype_title" + android:defaultValue="classic" + android:entries="@array/pwgen_provider" + android:entryValues="@array/pwgen_provider" + app:useSimpleSummaryProvider="true" + android:persistent="true" /> + <androidx.preference.CheckBoxPreference + android:key="pref_key_is_custom_dict" + android:title="@string/xkpwgen_pref_custom_dict_title" + android:summaryOn="@string/xkpwgen_pref_custom_dict_summary_on" + android:summaryOff="@string/xkpwgen_pref_custom_dict_summary_off"/> + <androidx.preference.Preference + android:key="pref_key_custom_dict" + android:title="@string/xkpwgen_pref_custom_dict_picker_title" + android:summary="@string/xkpwgen_pref_custom_dict_picker_summary" + android:dependency="pref_key_is_custom_dict"/> + </androidx.preference.PreferenceCategory> + <androidx.preference.PreferenceCategory android:title="@string/pref_general_title"> <androidx.preference.EditTextPreference android:defaultValue="45" |