From e5bb63c7ab4427b6116de4a999be306e0f3cf12e Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Tue, 9 May 2023 01:44:00 +0200 Subject: [PATCH] fix: check for opcode type `CONST` --- .../bytecode/fingerprints/CreatePlayerOverviewFingerprint.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/player/overlay/bytecode/fingerprints/CreatePlayerOverviewFingerprint.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/player/overlay/bytecode/fingerprints/CreatePlayerOverviewFingerprint.kt index 66dbfc96d..ed80bbe7c 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/player/overlay/bytecode/fingerprints/CreatePlayerOverviewFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/player/overlay/bytecode/fingerprints/CreatePlayerOverviewFingerprint.kt @@ -18,7 +18,7 @@ object CreatePlayerOverviewFingerprint : MethodFingerprint( ), customFingerprint = { methodDef -> methodDef.implementation?.instructions?.any { - if (it.opcode != Opcode.INVOKE_VIRTUAL) return@any false + if (it.opcode != Opcode.CONST) return@any false val literal = (it as WideLiteralInstruction).wideLiteral