fix(youtube): resolve fingerprints on mutable methods

This commit is contained in:
oSumAtrIX 2022-10-27 22:46:38 +02:00
parent 5b3c12539d
commit e40857fe8a
2 changed files with 3 additions and 3 deletions

View File

@ -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!!

View File

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