aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-07-15 02:42:46 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-07-15 02:42:46 +0000
commita9ba807cf42632b1744b5af5b9e1081575fecae5 (patch)
tree4093f8fe5e0442d6431c9ee3946ad779b0b17d9a /app/src/main/res
parentc97120528bd158c7ff430846ac04acfa74f78058 (diff)
downloadinfinity-for-reddit-a9ba807cf42632b1744b5af5b9e1081575fecae5.tar
infinity-for-reddit-a9ba807cf42632b1744b5af5b9e1081575fecae5.tar.gz
infinity-for-reddit-a9ba807cf42632b1744b5af5b9e1081575fecae5.tar.bz2
infinity-for-reddit-a9ba807cf42632b1744b5af5b9e1081575fecae5.tar.lz
infinity-for-reddit-a9ba807cf42632b1744b5af5b9e1081575fecae5.tar.xz
infinity-for-reddit-a9ba807cf42632b1744b5af5b9e1081575fecae5.tar.zst
infinity-for-reddit-a9ba807cf42632b1744b5af5b9e1081575fecae5.zip
Fix gif too small in ViewImageOrGifActivity. Hide immersive interface entry if the device has Android version lower than 8.0.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_view_image_or_gif.xml3
-rw-r--r--app/src/main/res/values/strings.xml3
-rw-r--r--app/src/main/res/xml/immersive_interface_preferences.xml5
-rw-r--r--app/src/main/res/xml/interface_preference.xml4
4 files changed, 8 insertions, 7 deletions
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"/>
<LinearLayout
android:id="@+id/load_image_error_linear_layout_view_image_or_gif_activity"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index eb0e5557..24d7639d 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -352,6 +352,7 @@
<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_summary">Does Not Apply to All Pages</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>
<string name="settings_customize_tabs_in_main_page_title">Customize Tabs in Main Page</string>
@@ -378,7 +379,7 @@
<string name="settings_show_thumbnail_on_the_left_in_compact_layout">Show Thumbnail on the Left in Compact Layout</string>
<string name="settings_swap_tap_and_long_title">Swap Tap and Long Press in Comments</string>
<string name="settings_swipe_to_go_back_title">Swipe Right to Go Back</string>
- <string name="settings_swipe_to_go_back_summary">Does not apply to all pages</string>
+ <string name="settings_swipe_to_go_back_summary">Does Not Apply to All Pages</string>
<string name="settings_lock_jump_to_next_top_level_comment_button_title">Lock Jump to Next Top-level Comment Button</string>
<string name="settings_lock_bottom_app_bar_title">Lock Bottom Navigation Bar</string>
<string name="settings_swipe_up_to_hide_jump_to_next_top_level_comment_button_title">Swipe Up to Hide Jump to Next Top-level Comment Button</string>
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" />
<SwitchPreference
app:defaultValue="false"
app:key="immersive_interface_ignore_nav_bar"
app:title="@string/settings_immersive_interface_ignore_nav_bar_title"
- app:summary="@string/settings_immersive_interface_ignore_nav_bar_summary"
- app:isPreferenceVisible="false" />
+ app:summary="@string/settings_immersive_interface_ignore_nav_bar_summary" />
</PreferenceScreen> \ 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" />
<Preference
+ app:key="immersive_interface_entry"
app:title="@string/settings_immersive_interface_title"
- app:fragment="ml.docilealligator.infinityforreddit.Settings.ImmersiveInterfacePreferenceFragment" />
+ app:fragment="ml.docilealligator.infinityforreddit.Settings.ImmersiveInterfacePreferenceFragment"
+ app:isPreferenceVisible="false" />
<Preference
app:title="@string/settings_customize_tabs_in_main_page_title"