aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/values
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-04-30 07:29:56 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-04-30 07:29:56 +0000
commit4678caa92bad919201b53000e8d4100bf253c497 (patch)
tree4f8bc00995dd35881103083568f5e0caba500b53 /app/src/main/res/values
parent5c053501192e0d9da87d7823c910e79d01cddafc (diff)
downloadinfinity-for-reddit-4678caa92bad919201b53000e8d4100bf253c497.tar
infinity-for-reddit-4678caa92bad919201b53000e8d4100bf253c497.tar.gz
infinity-for-reddit-4678caa92bad919201b53000e8d4100bf253c497.tar.bz2
infinity-for-reddit-4678caa92bad919201b53000e8d4100bf253c497.tar.lz
infinity-for-reddit-4678caa92bad919201b53000e8d4100bf253c497.tar.xz
infinity-for-reddit-4678caa92bad919201b53000e8d4100bf253c497.tar.zst
infinity-for-reddit-4678caa92bad919201b53000e8d4100bf253c497.zip
Add an option for video autoplay. Rewrite some viewholders in PostRecyclerViewAdapter.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/values/arrays.xml12
-rw-r--r--app/src/main/res/values/strings.xml1
2 files changed, 13 insertions, 0 deletions
diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml
index 4adfdff9..b415b0f5 100644
--- a/app/src/main/res/values/arrays.xml
+++ b/app/src/main/res/values/arrays.xml
@@ -47,6 +47,18 @@
<item>1</item>
</string-array>
+ <string-array name="settings_video_autoplay">
+ <item>Always On</item>
+ <item>Only on Wifi</item>
+ <item>Never</item>
+ </string-array>
+
+ <string-array name="settings_video_autoplay_values">
+ <item>2</item>
+ <item>1</item>
+ <item>0</item>
+ </string-array>
+
<string-array name="settings_lazy_mode_interval">
<item>1s</item>
<item>2s</item>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index fb7082dd..35dadb3a 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -311,6 +311,7 @@
<string name="settings_interface_title">Interface</string>
<string name="settings_gestures_and_buttons_title">Gestures &amp; Buttons</string>
<string name="settings_open_link_in_app_title">Open Link In App</string>
+ <string name="settings_video_autoplay_title">Video Autoplay</string>
<string name="settings_immersive_interface_title">Immersive Interface</string>
<string name="settings_immersive_interface_ignore_nav_bar_title">Ignore Navigation Bar in Immersive Interface</string>
<string name="settings_immersive_interface_ignore_nav_bar_summary">Prevent the Bottom Navigation Bar Having Extra Padding</string>