diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-09-16 03:23:38 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-09-16 03:23:38 +0000 |
commit | eb5cc7d7d41c1db8548fdcab52ce04d4d1a1439e (patch) | |
tree | 7a39dfdb95a01e5fbfe38d47578b85982a6e0040 /app/src/main/res/xml | |
parent | ef514a85c703464134934012b051979fa049a326 (diff) | |
download | infinity-for-reddit-eb5cc7d7d41c1db8548fdcab52ce04d4d1a1439e.tar infinity-for-reddit-eb5cc7d7d41c1db8548fdcab52ce04d4d1a1439e.tar.gz infinity-for-reddit-eb5cc7d7d41c1db8548fdcab52ce04d4d1a1439e.tar.bz2 infinity-for-reddit-eb5cc7d7d41c1db8548fdcab52ce04d4d1a1439e.tar.lz infinity-for-reddit-eb5cc7d7d41c1db8548fdcab52ce04d4d1a1439e.tar.xz infinity-for-reddit-eb5cc7d7d41c1db8548fdcab52ce04d4d1a1439e.tar.zst infinity-for-reddit-eb5cc7d7d41c1db8548fdcab52ce04d4d1a1439e.zip |
Add an option to require authentication before going to account section in navigation drawer.
Diffstat (limited to 'app/src/main/res/xml')
-rw-r--r-- | app/src/main/res/xml/main_preferences.xml | 5 | ||||
-rw-r--r-- | app/src/main/res/xml/security_preferences.xml | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml index ce6ff184..48bf5697 100644 --- a/app/src/main/res/xml/main_preferences.xml +++ b/app/src/main/res/xml/main_preferences.xml @@ -41,6 +41,11 @@ android:icon="@drawable/ic_download_24dp" app:fragment="ml.docilealligator.infinityforreddit.Settings.DownloadLocationPreferenceFragment" /> + <Preference + app:title="@string/settings_security_title" + android:icon="@drawable/ic_security_24dp" + app:fragment="ml.docilealligator.infinityforreddit.Settings.SecurityPreferenceFragment" /> + <SwitchPreference app:defaultValue="false" app:key="save_front_page_scrolled_position" diff --git a/app/src/main/res/xml/security_preferences.xml b/app/src/main/res/xml/security_preferences.xml new file mode 100644 index 00000000..a7174faf --- /dev/null +++ b/app/src/main/res/xml/security_preferences.xml @@ -0,0 +1,8 @@ +<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto"> + + <SwitchPreference + app:defaultValue="false" + app:key="require_auth_to_account_section" + app:title="@string/settings_require_authentication_to_go_to_account_section_in_navigation_drawer" /> + +</PreferenceScreen>
\ No newline at end of file |