aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-02-20 13:44:50 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-02-20 13:44:50 +0000
commit70709596872612306dc9f32e20135182c087b7b2 (patch)
tree36780d175161e7e3ca0aa9a0645c95709fd0267b /app/src/main/res
parent800b3c63a599f3a7b50c43e344b6fc3cd4ce3aff (diff)
downloadinfinity-for-reddit-70709596872612306dc9f32e20135182c087b7b2.tar
infinity-for-reddit-70709596872612306dc9f32e20135182c087b7b2.tar.gz
infinity-for-reddit-70709596872612306dc9f32e20135182c087b7b2.tar.bz2
infinity-for-reddit-70709596872612306dc9f32e20135182c087b7b2.tar.lz
infinity-for-reddit-70709596872612306dc9f32e20135182c087b7b2.tar.xz
infinity-for-reddit-70709596872612306dc9f32e20135182c087b7b2.tar.zst
infinity-for-reddit-70709596872612306dc9f32e20135182c087b7b2.zip
New option: Click to show media in gallery layout.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/values/strings.xml1
-rw-r--r--app/src/main/res/xml/post_preferences.xml8
2 files changed, 9 insertions, 0 deletions
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 57b528e7..94a18a9d 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -534,6 +534,7 @@
<string name="settings_subreddit_default_sort_time_title">Subreddit Default Sort Time</string>
<string name="settings_user_default_sort_type_title">User Default Sort Type</string>
<string name="settings_user_default_sort_time_title">User Default Sort Time</string>
+ <string name="settings_click_to_show_media_in_gallery_layout">Click to Show Media in Gallery Layout</string>
<string name="no_link_available">Cannot get the link</string>
diff --git a/app/src/main/res/xml/post_preferences.xml b/app/src/main/res/xml/post_preferences.xml
index 4c4b50aa..6dfbff12 100644
--- a/app/src/main/res/xml/post_preferences.xml
+++ b/app/src/main/res/xml/post_preferences.xml
@@ -33,5 +33,13 @@
<Preference
app:title="@string/settings_number_of_columns_in_post_feed_title"
app:fragment="ml.docilealligator.infinityforreddit.settings.NumberOfColumnsInPostFeedPreferenceFragment" />
+
+ <PreferenceCategory
+ app:title="@string/post_layout_gallery" />
+
+ <SwitchPreference
+ android:defaultValue="false"
+ app:key="click_to_show_media_in_gallery_layout"
+ app:title="@string/settings_click_to_show_media_in_gallery_layout" />
</PreferenceScreen> \ No newline at end of file