From e40857fe8a34175fe592209dcbeda1822b2a90aa Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Thu, 27 Oct 2022 22:46:38 +0200 Subject: [PATCH] fix(youtube): resolve fingerprints on mutable methods --- .../pivotbar/createbutton/patch/CreateButtonRemoverPatch.kt | 2 +- .../pivotbar/shortsbutton/patch/ShortsButtonRemoverPatch.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/createbutton/patch/CreateButtonRemoverPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/createbutton/patch/CreateButtonRemoverPatch.kt index d493745c8..d9ac146f6 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/createbutton/patch/CreateButtonRemoverPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/createbutton/patch/CreateButtonRemoverPatch.kt @@ -51,7 +51,7 @@ class CreateButtonRemoverPatch : BytecodePatch( val pivotBarResult = PivotBarFingerprint.result ?: return PatchResultError("PivotBarFingerprint failed") - if (!PivotBarCreateButtonViewFingerprint.resolve(context, pivotBarResult.method, pivotBarResult.classDef)) + if (!PivotBarCreateButtonViewFingerprint.resolve(context, pivotBarResult.mutableMethod, pivotBarResult.mutableClass)) return PatchResultError("${PivotBarCreateButtonViewFingerprint.name} failed") val createButtonResult = PivotBarCreateButtonViewFingerprint.result!! diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/shortsbutton/patch/ShortsButtonRemoverPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/shortsbutton/patch/ShortsButtonRemoverPatch.kt index 09c7d311b..d03af971e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/shortsbutton/patch/ShortsButtonRemoverPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/shortsbutton/patch/ShortsButtonRemoverPatch.kt @@ -52,8 +52,8 @@ class ShortsButtonRemoverPatch : BytecodePatch( .onEach { val resolutionSucceeded = it.resolve( context, - pivotBarResult.method, - pivotBarResult.classDef + pivotBarResult.mutableMethod, + pivotBarResult.mutableClass ) if (!resolutionSucceeded) return PatchResultError("${it.name} failed")