From a9ba807cf42632b1744b5af5b9e1081575fecae5 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Wed, 15 Jul 2020 10:42:46 +0800 Subject: Fix gif too small in ViewImageOrGifActivity. Hide immersive interface entry if the device has Android version lower than 8.0. --- app/src/main/res/layout/activity_view_image_or_gif.xml | 3 +-- app/src/main/res/values/strings.xml | 3 ++- app/src/main/res/xml/immersive_interface_preferences.xml | 5 ++--- app/src/main/res/xml/interface_preference.xml | 4 +++- 4 files changed, 8 insertions(+), 7 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/activity_view_image_or_gif.xml b/app/src/main/res/layout/activity_view_image_or_gif.xml index 21dd1f4b..9d3a0b58 100644 --- a/app/src/main/res/layout/activity_view_image_or_gif.xml +++ b/app/src/main/res/layout/activity_view_image_or_gif.xml @@ -19,8 +19,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" app:optimizeDisplay="true" - app:tapToRetry="false" - app:initScaleType="centerInside" /> + app:tapToRetry="false"/> Autoplay Videos Visible Area Offset (Landscape) Start autoplaying videos when %1$d%% of them are visible Immersive Interface + Does Not Apply to All Pages Ignore Navigation Bar in Immersive Interface Prevent the Bottom Navigation Bar Having Extra Padding Customize Tabs in Main Page @@ -378,7 +379,7 @@ Show Thumbnail on the Left in Compact Layout Swap Tap and Long Press in Comments Swipe Right to Go Back - Does not apply to all pages + Does Not Apply to All Pages Lock Jump to Next Top-level Comment Button Lock Bottom Navigation Bar Swipe Up to Hide Jump to Next Top-level Comment Button diff --git a/app/src/main/res/xml/immersive_interface_preferences.xml b/app/src/main/res/xml/immersive_interface_preferences.xml index 962faa10..6cd31d84 100644 --- a/app/src/main/res/xml/immersive_interface_preferences.xml +++ b/app/src/main/res/xml/immersive_interface_preferences.xml @@ -5,13 +5,12 @@ app:defaultValue="true" app:key="immersive_interface" app:title="@string/settings_immersive_interface_title" - app:isPreferenceVisible="false" /> + app:summary="@string/settings_immersive_interface_summary" /> + app:summary="@string/settings_immersive_interface_ignore_nav_bar_summary" /> \ No newline at end of file diff --git a/app/src/main/res/xml/interface_preference.xml b/app/src/main/res/xml/interface_preference.xml index e391a21c..8ad53611 100644 --- a/app/src/main/res/xml/interface_preference.xml +++ b/app/src/main/res/xml/interface_preference.xml @@ -8,8 +8,10 @@ app:fragment="ml.docilealligator.infinityforreddit.Settings.FontPreferenceFragment" /> + app:fragment="ml.docilealligator.infinityforreddit.Settings.ImmersiveInterfacePreferenceFragment" + app:isPreferenceVisible="false" />