From ec0107d6aefa6a3eeaf48b9141a89bd291c52a38 Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:37:21 +0900 Subject: [PATCH] fix(YouTube Music - Player components): `Restore old comments popup panels` not working on YouTube Music 7.25.53 --- .../patches/music/player/components/Fingerprints.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/patches/src/main/kotlin/app/revanced/patches/music/player/components/Fingerprints.kt b/patches/src/main/kotlin/app/revanced/patches/music/player/components/Fingerprints.kt index ea0046e1b..bf5204063 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/player/components/Fingerprints.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/player/components/Fingerprints.kt @@ -11,6 +11,7 @@ import app.revanced.patches.music.utils.resourceid.miniPlayerViewPager import app.revanced.patches.music.utils.resourceid.playerViewPager import app.revanced.patches.music.utils.resourceid.remixGenericButtonSize import app.revanced.patches.music.utils.resourceid.tapBloomView +import app.revanced.util.containsLiteralInstruction import app.revanced.util.fingerprint.legacyFingerprint import app.revanced.util.getReference import app.revanced.util.indexOfFirstInstruction @@ -50,10 +51,11 @@ internal val engagementPanelHeightFingerprint = legacyFingerprint( ), parameters = emptyList(), customFingerprint = { method, _ -> - method.indexOfFirstInstruction { - opcode == Opcode.INVOKE_VIRTUAL && - getReference()?.name == "booleanValue" - } >= 0 + method.containsLiteralInstruction(1) && + method.indexOfFirstInstruction { + opcode == Opcode.INVOKE_VIRTUAL && + getReference()?.name == "booleanValue" + } >= 0 } )