From a2ff7d83941f512c1bbca18fee1d4afbaf3ebf56 Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Thu, 16 Nov 2023 19:23:03 +0900 Subject: [PATCH] fix(YouTube Music/Hide cast button): no exception occurs when resolving a fingerprint fails --- .../patches/music/general/castbutton/HideCastButtonPatch.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patches/music/general/castbutton/HideCastButtonPatch.kt b/src/main/kotlin/app/revanced/patches/music/general/castbutton/HideCastButtonPatch.kt index 678793d54..6a0944552 100644 --- a/src/main/kotlin/app/revanced/patches/music/general/castbutton/HideCastButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/general/castbutton/HideCastButtonPatch.kt @@ -76,7 +76,7 @@ object HideCastButtonPatch : BytecodePatch( "invoke-static {v$targetRegister}, $MUSIC_GENERAL->hideCastButton(Landroid/view/View;)V" ) } - } + } ?: throw PlayerOverlayChipFingerprint.exception SettingsPatch.addMusicPreference( CategoryType.GENERAL,