Skip to content

Commit

Permalink
fix(youtube): resolve fingerprints on mutable methods
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Oct 27, 2022
1 parent 5b3c125 commit e40857f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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!!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e40857f

Please sign in to comment.