aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-07-30 15:12:34 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-07-30 15:12:34 +0000
commit61d3302a309c888d4a0718ded3b83518f10d3630 (patch)
tree0c78fccaae250bd8fc3ac614c0ff0acf4f1d67f8 /app/src/main/res/xml
parentbb598531b5b575ca03d7efc4e79ab02a4b882bd8 (diff)
downloadinfinity-for-reddit-61d3302a309c888d4a0718ded3b83518f10d3630.tar
infinity-for-reddit-61d3302a309c888d4a0718ded3b83518f10d3630.tar.gz
infinity-for-reddit-61d3302a309c888d4a0718ded3b83518f10d3630.tar.bz2
infinity-for-reddit-61d3302a309c888d4a0718ded3b83518f10d3630.tar.lz
infinity-for-reddit-61d3302a309c888d4a0718ded3b83518f10d3630.tar.xz
infinity-for-reddit-61d3302a309c888d4a0718ded3b83518f10d3630.tar.zst
infinity-for-reddit-61d3302a309c888d4a0718ded3b83518f10d3630.zip
Use SharedPreferences to store post feed scrolled position instead of QNCache. Add an option to save the scrolled position.
Diffstat (limited to 'app/src/main/res/xml')
-rw-r--r--app/src/main/res/xml/main_preferences.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml
index af3f3898..3b1b129f 100644
--- a/app/src/main/res/xml/main_preferences.xml
+++ b/app/src/main/res/xml/main_preferences.xml
@@ -37,6 +37,12 @@
app:useSimpleSummaryProvider="true" />
<SwitchPreference
+ app:defaultValue="true"
+ app:key="save_post_feed_scrolled_position"
+ app:title="@string/settings_save_post_feed_scrolled_position_title"
+ app:summary="@string/settings_save_post_feed_scrolled_position_summary" />
+
+ <SwitchPreference
app:defaultValue="false"
app:icon="@drawable/ic_link"
app:key="open_link_in_app"