diff --git a/src/main/kotlin/app/revanced/patches/music/video/playback/VideoPlaybackPatch.kt b/src/main/kotlin/app/revanced/patches/music/video/playback/VideoPlaybackPatch.kt index 9ac5bbd5e4..4173158b07 100644 --- a/src/main/kotlin/app/revanced/patches/music/video/playback/VideoPlaybackPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/video/playback/VideoPlaybackPatch.kt @@ -115,10 +115,22 @@ object VideoPlaybackPatch : BaseBytecodePatch( "revanced_remember_playback_speed_last_selected", "true" ) + SettingsPatch.addSwitchPreference( + CategoryType.VIDEO, + "revanced_remember_playback_speed_last_selected_toast", + "true", + "revanced_remember_playback_speed_last_selected" + ) SettingsPatch.addSwitchPreference( CategoryType.VIDEO, "revanced_remember_video_quality_last_selected", "true" ) + SettingsPatch.addSwitchPreference( + CategoryType.VIDEO, + "revanced_remember_video_quality_last_selected_toast", + "true", + "revanced_remember_video_quality_last_selected" + ) } } diff --git a/src/main/resources/music/settings/host/values/strings.xml b/src/main/resources/music/settings/host/values/strings.xml index b39aec33e8..905bc8af5c 100644 --- a/src/main/resources/music/settings/host/values/strings.xml +++ b/src/main/resources/music/settings/host/values/strings.xml @@ -271,8 +271,12 @@ Some features may not work properly in the old player layout." Add or change available playback speeds. Remember playback speed changes Remembers the last playback speed selected. + Show a toast + Show a toast when changing the default playback speed. Remember video quality changes Remembers the last video quality selected. + Show a toast + Show a toast when changing the default video quality. Custom speeds must be less than %sx. Using default values. Invalid custom playback speeds. Using default values. Changing default speed to %s.