From 99916aefaaea3b94e94e2901d70493fdb18a3dab Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Tue, 16 May 2023 10:29:24 +0400 Subject: [PATCH] feat(youtube): add options to disable toasts on connection error (#2159) Co-authored-by: oSumAtrIX --- .../youtube/misc/debugging/patch/DebuggingPatch.kt | 3 +-- .../returnyoutubedislike/host/values/strings.xml | 6 +++++- .../resources/sponsorblock/host/values/strings.xml | 11 +++++++---- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/debugging/patch/DebuggingPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/debugging/patch/DebuggingPatch.kt index 8dfd99eb7..d5f279458 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/debugging/patch/DebuggingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/debugging/patch/DebuggingPatch.kt @@ -54,8 +54,7 @@ class DebuggingPatch : ResourcePatch { StringResource("revanced_debug_toast_on_error_summary_off", "Toast not shown if error occurs"), StringResource("revanced_debug_toast_on_error_user_dialog_message", "Turning off error toasts hides all ReVanced error notifications." - + "\\n\\nThis includes hiding normal network connection timeouts, " - + "but also hides notification of any unexpected and more serious errors." + + "\\n\\nYou will not be notified of any unexpected events." ) ), ), diff --git a/src/main/resources/returnyoutubedislike/host/values/strings.xml b/src/main/resources/returnyoutubedislike/host/values/strings.xml index ba571239f..e887fe5ce 100644 --- a/src/main/resources/returnyoutubedislike/host/values/strings.xml +++ b/src/main/resources/returnyoutubedislike/host/values/strings.xml @@ -25,9 +25,13 @@ Like button styled for minimum width Like button styled for best appearance + Show toast if API not available + Toast shown if ReturnYouTubeDislike API is not available + Toast not shown if ReturnYouTubeDislike API is not available + About ReturnYouTubeDislike.com - Dislike data is provided by the Return YouTube Dislike API. Tap here to learn more. + Data is provided by the Return YouTube Dislike API. Tap here to learn more. ReturnYouTubeDislike API statistics of this device diff --git a/src/main/resources/sponsorblock/host/values/strings.xml b/src/main/resources/sponsorblock/host/values/strings.xml index f008954e0..d451ce290 100644 --- a/src/main/resources/sponsorblock/host/values/strings.xml +++ b/src/main/resources/sponsorblock/host/values/strings.xml @@ -35,6 +35,9 @@ Show me General + Show toast if API is not available + Toast shown if SponsorBlock API is not available + Toast not shown if SponsorBlock API is not available Enable skip count tracking Lets the SponsorBlock leaderboard know how much time is saved. A message is sent to the leaderboard each time a segment is skipped Skip count tracking is not enabled @@ -117,10 +120,10 @@ Show in seek bar Disable - Can\'t submit the segment: %s - Unable to submit segments (API timed out) - Unable to submit segments (status: %d %s) - Can\'t submit the segment.\nRate Limited (too many from the same user or IP) + Unable to submit segment: %s + SponsorBlock is temporarily down + Unable to submit segment (status: %d %s) + Unable to submit segment.\nRate Limited (too many from the same user or IP) Can\'t submit the segment: %s Can\'t submit the segment.\nAlready exists Segment submitted successfully