diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-07-08 14:19:08 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-07-08 14:19:08 +0000 |
commit | 6f34d854ea7552fadd9b22e934b45cd86ebc162b (patch) | |
tree | 9b4c28f6f344d6b9ccf2a277e19d0f05fb7999eb /app/src/main/res | |
parent | 318b11da01ad843ad63d82b4ac87eb1eaa84b9dc (diff) | |
download | infinity-for-reddit-6f34d854ea7552fadd9b22e934b45cd86ebc162b.tar infinity-for-reddit-6f34d854ea7552fadd9b22e934b45cd86ebc162b.tar.gz infinity-for-reddit-6f34d854ea7552fadd9b22e934b45cd86ebc162b.tar.bz2 infinity-for-reddit-6f34d854ea7552fadd9b22e934b45cd86ebc162b.tar.lz infinity-for-reddit-6f34d854ea7552fadd9b22e934b45cd86ebc162b.tar.xz infinity-for-reddit-6f34d854ea7552fadd9b22e934b45cd86ebc162b.tar.zst infinity-for-reddit-6f34d854ea7552fadd9b22e934b45cd86ebc162b.zip |
Setting autoplay videos visible area offset is available. Remove Crashy because it will crash on some devices, such as Pixel Slate.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/values/strings.xml | 6 | ||||
-rw-r--r-- | app/src/main/res/xml/about_preferences.xml | 5 | ||||
-rw-r--r-- | app/src/main/res/xml/video_preferences.xml | 14 |
3 files changed, 18 insertions, 7 deletions
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 23c3e314..6c31ed48 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -347,6 +347,10 @@ <string name="settings_video_autoplay_title">Video Autoplay</string> <string name="settings_mute_autoplaying_videos_title">Mute Autoplaying Videos</string> <string name="settings_autoplay_nsfw_videos_title">Autoplay NSFW Videos</string> + <string name="settings_start_autoplay_visible_area_offset_portrait_title">Autoplay Videos Visible Area Offset (Portrait)</string> + <string name="settings_start_autoplay_visible_area_offset_portrait_summary">Start autoplaying videos when %1$d%% of them are visible</string> + <string name="settings_start_autoplay_visible_area_offset_landscape_title">Autoplay Videos Visible Area Offset (Landscape)</string> + <string name="settings_start_autoplay_visible_area_offset_landscape_summary">Start autoplaying videos when %1$d%% of them are visible</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> @@ -425,8 +429,6 @@ <string name="settings_share_title">Share</string> <string name="settings_share_summary">Share this app to other people if you enjoy it</string> <string name="settings_version_title">Infinity For Reddit</string> - <string name="settings_crash_reports_title">Crash Reports</string> - <string name="settings_crash_reports_summary">See the error logs and send them to me when you report bugs</string> <string name="settings_version_summary">Version %s</string> <string name="settings_category_customization_title">Customization</string> <string name="settings_customize_light_theme_title">Light Theme</string> diff --git a/app/src/main/res/xml/about_preferences.xml b/app/src/main/res/xml/about_preferences.xml index 6561eec3..a73f9aaa 100644 --- a/app/src/main/res/xml/about_preferences.xml +++ b/app/src/main/res/xml/about_preferences.xml @@ -46,11 +46,6 @@ app:summary="@string/settings_share_summary" /> <Preference - app:title="@string/settings_crash_reports_title" - app:summary="@string/settings_crash_reports_summary" - app:fragment="ml.docilealligator.infinityforreddit.Settings.CrashReportsFragment" /> - - <Preference android:key="version" app:title="@string/settings_version_title" app:summary="@string/settings_version_summary" /> diff --git a/app/src/main/res/xml/video_preferences.xml b/app/src/main/res/xml/video_preferences.xml index bb690347..e570c478 100644 --- a/app/src/main/res/xml/video_preferences.xml +++ b/app/src/main/res/xml/video_preferences.xml @@ -35,4 +35,18 @@ app:key="autoplay_nsfw_videos" app:title="@string/settings_autoplay_nsfw_videos_title" /> + <SeekBarPreference + app:defaultValue="75" + android:max="100" + app:key="start_autoplay_visible_area_offset_portrait" + app:title="@string/settings_start_autoplay_visible_area_offset_portrait_title" + app:singleLineTitle="false" /> + + <SeekBarPreference + app:defaultValue="50" + android:max="100" + app:key="start_autoplay_visible_area_offset_landscape" + app:title="@string/settings_start_autoplay_visible_area_offset_landscape_title" + app:singleLineTitle="false" /> + </PreferenceScreen>
\ No newline at end of file |