From dce5777fbbaa7d8611c819fe3a75ab7f85a9a09d Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sat, 20 Jun 2020 22:02:18 +0800 Subject: Add an option to automatically try loading removed gfycat videos on Redgifs. --- app/src/main/res/layout/activity_view_video.xml | 7 +++-- app/src/main/res/values/strings.xml | 6 +++- app/src/main/res/xml/autoplay_preferences.xml | 24 ---------------- app/src/main/res/xml/main_preferences.xml | 11 ++----- app/src/main/res/xml/video_preferences.xml | 38 +++++++++++++++++++++++++ 5 files changed, 50 insertions(+), 36 deletions(-) delete mode 100644 app/src/main/res/xml/autoplay_preferences.xml create mode 100644 app/src/main/res/xml/video_preferences.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/activity_view_video.xml b/app/src/main/res/layout/activity_view_video.xml index 2907fd4d..1d18f2ab 100644 --- a/app/src/main/res/layout/activity_view_video.xml +++ b/app/src/main/res/layout/activity_view_video.xml @@ -15,7 +15,8 @@ android:layout_height="match_parent" android:fillViewport="true"> - @@ -29,10 +30,10 @@ android:id="@+id/progress_bar_view_video_activity" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_centerInParent="true" + android:layout_gravity="center" android:visibility="gone" /> - + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 34dc43cb..1eecbe16 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -329,6 +329,7 @@ Interface Gestures & Buttons Open Link In App + Video Video Autoplay Mute Autoplaying Videos Autoplay NSFW Videos @@ -343,6 +344,7 @@ Use Volume Keys to Navigate Comments in Posts Use Volume Keys to Navigate Posts Mute Video + Automatically Try Accessing Redgifs if Videos on Gfycat are Removed. Confirm to Exit Show Top-level Comments First Show Comment Divider @@ -394,7 +396,7 @@ Material Icons Open Source Star it on Github if you like this app - Rate in Google Play + Rate on Google Play Give me a 5-star rating and I will be really happy F-Droid It\'s available in IzzyOnDroid, an F-Droid Repository @@ -788,4 +790,6 @@ Default + Try loading the video on Redgifs + diff --git a/app/src/main/res/xml/autoplay_preferences.xml b/app/src/main/res/xml/autoplay_preferences.xml deleted file mode 100644 index 5cc344aa..00000000 --- a/app/src/main/res/xml/autoplay_preferences.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml index f332a49c..c15bfee4 100644 --- a/app/src/main/res/xml/main_preferences.xml +++ b/app/src/main/res/xml/main_preferences.xml @@ -29,14 +29,9 @@ app:title="@string/settings_open_link_in_app_title" /> - - + app:title="@string/settigns_video_title" + android:icon="@drawable/ic_outline_video_24dp" + app:fragment="ml.docilealligator.infinityforreddit.Settings.VideoPreferenceFragment" /> + + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3