feat(YouTube Music/Video playback): add an option to disable toasts when changing the default values

This commit is contained in:
inotia00
2024-08-28 16:55:58 +09:00
parent 010a19fc9e
commit c992f4ac9c
2 changed files with 16 additions and 0 deletions

View File

@ -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"
)
}
}