diff options
Diffstat (limited to 'app/src/main/res/xml')
-rw-r--r-- | app/src/main/res/xml/data_saving_mode_preferences.xml | 13 | ||||
-rw-r--r-- | app/src/main/res/xml/main_preferences.xml | 6 |
2 files changed, 19 insertions, 0 deletions
diff --git a/app/src/main/res/xml/data_saving_mode_preferences.xml b/app/src/main/res/xml/data_saving_mode_preferences.xml new file mode 100644 index 00000000..1f66892f --- /dev/null +++ b/app/src/main/res/xml/data_saving_mode_preferences.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> + + <ListPreference + app:defaultValue="0" + app:key="data_saving_mode" + android:title="@string/settings_data_saving_mode" + app:entries="@array/settings_data_saving_mode" + app:entryValues="@array/settings_data_saving_mode_values" + app:useSimpleSummaryProvider="true" /> + +</PreferenceScreen>
\ No newline at end of file diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml index 68c407ae..88756af0 100644 --- a/app/src/main/res/xml/main_preferences.xml +++ b/app/src/main/res/xml/main_preferences.xml @@ -47,6 +47,12 @@ android:icon="@drawable/ic_security_24dp" app:fragment="ml.docilealligator.infinityforreddit.Settings.SecurityPreferenceFragment" /> + <Preference + app:key="security" + app:title="@string/settings_data_saving_mode" + app:icon="@drawable/ic_data_saving_mode_black_24dp" + app:fragment="ml.docilealligator.infinityforreddit.Settings.DataSavingModePreferenceFragment" /> + <SwitchPreference app:defaultValue="false" app:key="save_front_page_scrolled_position" |