mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-02 23:32:54 +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")
|
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!!
|
||||||
|
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user