From 84694a8bbd9e95395d67e52a0e81827acd86a498 Mon Sep 17 00:00:00 2001 From: Stypox Date: Tue, 29 Sep 2020 21:09:11 +0200 Subject: [PATCH] Improve age restriction and yt restricted content strings --- .../newpipe/fragments/detail/VideoDetailFragment.java | 3 ++- app/src/main/res/values/strings.xml | 9 +++++---- app/src/main/res/xml/content_settings.xml | 6 ++++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java index 1b62c8ffb..2e5f248b3 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java @@ -1551,7 +1551,8 @@ public class VideoDetailFragment } private void hideAgeRestrictedContent() { - showError(getString(R.string.restricted_video), false); + showError(getString(R.string.restricted_video, + getString(R.string.show_age_restricted_content_title)), false); if (relatedStreamsLayout != null) { // tablet relatedStreamsLayout.setVisibility(View.INVISIBLE); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8457007b3..3d4caf20e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -154,10 +154,11 @@ Queued on popup player https://www.c3s.cc/ Content - Age restricted content - Show age restricted video. Future changes are possible from the settings. - YouTube restricted mode - This video is age restricted.\n\nTurn on \"Age restricted content\" in the settings if you want to see it. + Show age restricted content + Show content possibly unsuitable for children because it has an age limit (like 18+). + Turn on YouTube\'s \"Restricted Mode\" + YouTube provides a \"Restricted Mode\" which hides potentially mature content. + This video is age restricted.\n\nTurn on \"%1$s\" in the settings if you want to see it. Live Downloads Downloads diff --git a/app/src/main/res/xml/content_settings.xml b/app/src/main/res/xml/content_settings.xml index b91073ed1..1d505ba11 100644 --- a/app/src/main/res/xml/content_settings.xml +++ b/app/src/main/res/xml/content_settings.xml @@ -49,13 +49,15 @@ app:iconSpaceReserved="false" android:defaultValue="false" android:key="@string/show_age_restricted_content" - android:title="@string/show_age_restricted_content_title"/> + android:title="@string/show_age_restricted_content_title" + android:summary="@string/show_age_restricted_content_summary"/> + android:title="@string/youtube_restricted_mode_enabled_title" + android:summary="@string/youtube_restricted_mode_enabled_summary"/>