aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-11-07 03:24:43 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-11-07 03:24:43 +0000
commita4b95aee241b1d4f79b709ce06b95b0818a130af (patch)
treeb0300b34b110ef483e6476c89bba3600f61b7381 /app/src/main/res
parent7e446c9fcb3e94e75d3a20ccc8575aa7fde76887 (diff)
downloadinfinity-for-reddit-a4b95aee241b1d4f79b709ce06b95b0818a130af.tar
infinity-for-reddit-a4b95aee241b1d4f79b709ce06b95b0818a130af.tar.gz
infinity-for-reddit-a4b95aee241b1d4f79b709ce06b95b0818a130af.tar.bz2
infinity-for-reddit-a4b95aee241b1d4f79b709ce06b95b0818a130af.tar.lz
infinity-for-reddit-a4b95aee241b1d4f79b709ce06b95b0818a130af.tar.xz
infinity-for-reddit-a4b95aee241b1d4f79b709ce06b95b0818a130af.tar.zst
infinity-for-reddit-a4b95aee241b1d4f79b709ce06b95b0818a130af.zip
New option: Disable Image Preview in Data Saving Mode.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/drawable/ic_gallery_24dp.xml5
-rw-r--r--app/src/main/res/values/strings.xml1
-rw-r--r--app/src/main/res/xml/data_saving_mode_preferences.xml13
3 files changed, 15 insertions, 4 deletions
diff --git a/app/src/main/res/drawable/ic_gallery_24dp.xml b/app/src/main/res/drawable/ic_gallery_24dp.xml
new file mode 100644
index 00000000..d54dba10
--- /dev/null
+++ b/app/src/main/res/drawable/ic_gallery_24dp.xml
@@ -0,0 +1,5 @@
+<vector android:height="24dp" android:tint="#FFFFFF"
+ android:viewportHeight="24" android:viewportWidth="24"
+ android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillColor="@android:color/white" android:pathData="M20,4v12L8,16L8,4h12m0,-2L8,2c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2L22,4c0,-1.1 -0.9,-2 -2,-2zM11.5,11.67l1.69,2.26 2.48,-3.1L19,15L9,15zM2,6v14c0,1.1 0.9,2 2,2h14v-2L4,20L4,6L2,6z"/>
+</vector>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 9041a5d1..c41f082e 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -503,6 +503,7 @@
<string name="settings_subreddit_filter_popular_and_all">In r/popular and r/all</string>
<string name="settings_credits_ufo_capturing_animation_title">UFO Capturing Animation</string>
<string name="settings_hide_subreddit_description_title">Hide Subreddit Description</string>
+ <string name="settings_disable_image_preview_title">Disable Image Preview in Data Saving Mode</string>
<string name="no_link_available">Cannot get the link</string>
diff --git a/app/src/main/res/xml/data_saving_mode_preferences.xml b/app/src/main/res/xml/data_saving_mode_preferences.xml
index f120afe5..e635f2db 100644
--- a/app/src/main/res/xml/data_saving_mode_preferences.xml
+++ b/app/src/main/res/xml/data_saving_mode_preferences.xml
@@ -2,6 +2,11 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
+ <Preference
+ app:icon="@drawable/ic_info_preference_24dp"
+ app:summary="@string/settings_data_saving_mode_info_summary"
+ app:enabled="false" />
+
<ListPreference
app:defaultValue="0"
app:key="data_saving_mode"
@@ -10,9 +15,9 @@
app:entryValues="@array/settings_data_saving_mode_values"
app:useSimpleSummaryProvider="true" />
- <Preference
- app:icon="@drawable/ic_info_preference_24dp"
- app:summary="@string/settings_data_saving_mode_info_summary"
- app:enabled="false" />
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="disable_image_preview"
+ android:title="@string/settings_disable_image_preview_title" />
</PreferenceScreen> \ No newline at end of file