mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-02 23:42:55 +01:00
fix(youtube): resolve fingerprints on mutable methods
This commit is contained in:
parent
9250899d52
commit
10e4af3866
@ -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!!
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user