aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-09-27 08:02:10 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-09-27 08:02:10 +0000
commit62a457a868a5441483cbce8de7ec43db106d880d (patch)
tree0e731315219554bbad3fd5483a71a3ab256416d6 /app/src/main/res/xml
parentc4f8c91944fc1a0a4e919f8f2f0870ecbb2a09fb (diff)
downloadinfinity-for-reddit-62a457a868a5441483cbce8de7ec43db106d880d.tar
infinity-for-reddit-62a457a868a5441483cbce8de7ec43db106d880d.tar.gz
infinity-for-reddit-62a457a868a5441483cbce8de7ec43db106d880d.tar.bz2
infinity-for-reddit-62a457a868a5441483cbce8de7ec43db106d880d.tar.lz
infinity-for-reddit-62a457a868a5441483cbce8de7ec43db106d880d.tar.xz
infinity-for-reddit-62a457a868a5441483cbce8de7ec43db106d880d.tar.zst
infinity-for-reddit-62a457a868a5441483cbce8de7ec43db106d880d.zip
Data Saving Mode is available.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/xml/data_saving_mode_preferences.xml13
-rw-r--r--app/src/main/res/xml/main_preferences.xml6
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"