From 9f16b6c25aedce4511f9190f9f80e5ae782de55f Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sat, 20 Jun 2020 14:02:33 +0800 Subject: Add an option: Mute Autoplaying Videos. --- app/src/main/res/layout/activity_comment.xml | 6 +++--- app/src/main/res/layout/item_post_detail_no_preview_link.xml | 2 +- app/src/main/res/layout/item_post_detail_text.xml | 2 +- app/src/main/res/values/strings.xml | 3 +-- app/src/main/res/xml/autoplay_preferences.xml | 6 ++++++ 5 files changed, 12 insertions(+), 7 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/activity_comment.xml b/app/src/main/res/layout/activity_comment.xml index 100db899..1fe93f50 100644 --- a/app/src/main/res/layout/activity_comment.xml +++ b/app/src/main/res/layout/activity_comment.xml @@ -45,9 +45,9 @@ android:id="@+id/content_markdown_view_comment_activity" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="16dp" - android:layout_marginEnd="16dp" - android:layout_marginBottom="16dp" + android:layout_marginStart="8dp" + android:layout_marginEnd="8dp" + android:layout_marginBottom="8dp" android:visibility="gone" /> diff --git a/app/src/main/res/layout/item_post_detail_text.xml b/app/src/main/res/layout/item_post_detail_text.xml index de939064..7828687d 100644 --- a/app/src/main/res/layout/item_post_detail_text.xml +++ b/app/src/main/res/layout/item_post_detail_text.xml @@ -108,7 +108,7 @@ android:id="@+id/content_markdown_view_item_post_detail_text" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginTop="16dp" + android:layout_marginTop="8dp" android:layout_marginStart="8dp" android:layout_marginEnd="8dp" android:visibility="gone" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 4b8e20e4..34dc43cb 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -330,6 +330,7 @@ Gestures & Buttons Open Link In App Video Autoplay + Mute Autoplaying Videos Autoplay NSFW Videos Immersive Interface Ignore Navigation Bar in Immersive Interface @@ -786,7 +787,5 @@ Set to Both Default - - Hello blank fragment diff --git a/app/src/main/res/xml/autoplay_preferences.xml b/app/src/main/res/xml/autoplay_preferences.xml index 6cb07dd9..5cc344aa 100644 --- a/app/src/main/res/xml/autoplay_preferences.xml +++ b/app/src/main/res/xml/autoplay_preferences.xml @@ -10,6 +10,12 @@ app:title="@string/settings_video_autoplay_title" app:useSimpleSummaryProvider="true" /> + +