fix(youtube): resolve fingerprints on mutable methods

This commit is contained in:
oSumAtrIX 2022-10-27 22:46:38 +02:00
parent 9250899d52
commit 10e4af3866
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
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") 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") return PatchResultError("${PivotBarCreateButtonViewFingerprint.name} failed")
val createButtonResult = PivotBarCreateButtonViewFingerprint.result!! val createButtonResult = PivotBarCreateButtonViewFingerprint.result!!

View File

@ -52,8 +52,8 @@ class ShortsButtonRemoverPatch : BytecodePatch(
.onEach { .onEach {
val resolutionSucceeded = it.resolve( val resolutionSucceeded = it.resolve(
context, context,
pivotBarResult.method, pivotBarResult.mutableMethod,
pivotBarResult.classDef pivotBarResult.mutableClass
) )
if (!resolutionSucceeded) return PatchResultError("${it.name} failed") if (!resolutionSucceeded) return PatchResultError("${it.name} failed")