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 34cdde22..b3946737 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 @@ -29,7 +29,7 @@ class DebuggingPatch : ResourcePatch { listOf( SwitchPreference( "revanced_debug_enabled", - StringResource("revanced_debug_enabled_title", "Enable debug logs"), + StringResource("revanced_debug_enabled_title", "Debug logging"), false, StringResource("revanced_debug_summary_on", "Debug logs are enabled"), StringResource("revanced_debug_summary_off", "Debug logs are disabled") @@ -38,11 +38,21 @@ class DebuggingPatch : ResourcePatch { "revanced_debug_stacktrace_enabled", StringResource( "revanced_debug_stacktrace_enabled_title", - "Print stack traces" + "Log stack traces" ), false, - StringResource("revanced_debug_stacktrace_summary_on", "Enabled printing stack traces"), - StringResource("revanced_debug_stacktrace_summary_off", "Disabled printing stack traces") + StringResource("revanced_debug_stacktrace_summary_on", "Debug logs include stack trace"), + StringResource("revanced_debug_stacktrace_summary_off", "Debug logs do not include stack trace") + ), + SwitchPreference( + "revanced_debug_toast_on_error_enabled", + StringResource( + "revanced_debug_toast_on_error_enabled_title", + "Show toast on ReVanced error" + ), + true, + StringResource("revanced_debug_toast_on_error_summary_on", "Toast shown if error occurs"), + StringResource("revanced_debug_toast_on_error_summary_off", "Toast not shown if error occurs") ), ), StringResource("revanced_debug_summary", "Enable or disable debugging options") diff --git a/src/main/resources/returnyoutubedislike/host/values/strings.xml b/src/main/resources/returnyoutubedislike/host/values/strings.xml index 471a51aa..8c7f4442 100644 --- a/src/main/resources/returnyoutubedislike/host/values/strings.xml +++ b/src/main/resources/returnyoutubedislike/host/values/strings.xml @@ -3,10 +3,9 @@ Dislikes temporarily not available (API timed out) Dislikes not available (client API limit reached) - ReturnYouTubeDislike failed to register as new user - ReturnYouTubeDislike failed to confirm new user - ReturnYouTubeDislike failed to send vote - ReturnYouTubeDislike failed to confirm vote + + + Reload video to vote using ReturnYouTubeDislike Return YouTube Dislike Dislikes are shown @@ -34,16 +33,16 @@ Dislikes temporarily not available - Client API rate limit in effect API fetch votes, number of calls - No network calls have been made - %d network calls have been made + No network calls made + %d network calls made API fetch votes, number of timeouts - No network calls have timed out + No network calls timed out %d network calls timed out API client rate limits - No client rate limits have been encountered - Client rate limit was encountered %d times + No client rate limits encountered + Client rate limit encountered %d times %d milliseconds