diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-07-19 14:44:24 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-07-19 14:44:24 +0000 |
commit | 988989826fe0624141405808ec6f59067477a496 (patch) | |
tree | b6ecf23d4871d8f20dd92aea6daa41084d3b0dc2 /app/src/main/res | |
parent | 5924c921cfb1ed39b6cac5a101a85f7c4d08e1f5 (diff) | |
download | infinity-for-reddit-988989826fe0624141405808ec6f59067477a496.tar infinity-for-reddit-988989826fe0624141405808ec6f59067477a496.tar.gz infinity-for-reddit-988989826fe0624141405808ec6f59067477a496.tar.bz2 infinity-for-reddit-988989826fe0624141405808ec6f59067477a496.tar.lz infinity-for-reddit-988989826fe0624141405808ec6f59067477a496.tar.xz infinity-for-reddit-988989826fe0624141405808ec6f59067477a496.tar.zst infinity-for-reddit-988989826fe0624141405808ec6f59067477a496.zip |
New option: Switch to landscape orientation in video player automatically.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/activity_motion_test.xml | 17 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 1 | ||||
-rw-r--r-- | app/src/main/res/xml/video_preferences.xml | 5 |
3 files changed, 6 insertions, 17 deletions
diff --git a/app/src/main/res/layout/activity_motion_test.xml b/app/src/main/res/layout/activity_motion_test.xml deleted file mode 100644 index c65afba9..00000000 --- a/app/src/main/res/layout/activity_motion_test.xml +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<ml.docilealligator.infinityforreddit.customviews.ClickableMotionLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - xmlns:tools="http://schemas.android.com/tools" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:id="@+id/motion_layout" - tools:context=".activities.MotionTestActivity" - app:layoutDescription="@xml/activity_motion_test_scene"> - - <View - android:id="@+id/button" - android:background="@color/colorAccent" - android:layout_width="64dp" - android:layout_height="64dp" /> - -</ml.docilealligator.infinityforreddit.customviews.ClickableMotionLayout>
\ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d752bffa..276f2746 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -585,6 +585,7 @@ <string name="settings_nsfw_and_spoiler_dangerous_group_title">Dangerous</string> <string name="settings_disable_nsfw_forever_title">Disable NSFW Forever</string> <string name="settings_show_only_one_comment_level_indicator">Show Only One Comment Level Indicator</string> + <string name="settings_video_player_automatic_landscape_orientation">Switch to Landscape Orientation in Video Player Automatically</string> <string name="no_link_available">Cannot get the link</string> diff --git a/app/src/main/res/xml/video_preferences.xml b/app/src/main/res/xml/video_preferences.xml index a0924140..93ccff6b 100644 --- a/app/src/main/res/xml/video_preferences.xml +++ b/app/src/main/res/xml/video_preferences.xml @@ -25,6 +25,11 @@ app:title="@string/settings_video_player_ignore_nav_bar_title" app:summary="@string/settings_video_player_ignore_nav_bar_summary" /> + <SwitchPreference + app:defaultValue="false" + app:key="video_player_automatic_landscape_orientation" + app:title="@string/settings_video_player_automatic_landscape_orientation" /> + <PreferenceCategory app:title="@string/settings_video_autoplay_title" /> |