Skip to content

Commit

Permalink
fix(hide-email-address): invalid instruction offsets (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
OxrxL committed Sep 28, 2022
1 parent 6f054c7 commit 93d47cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ class HideEmailAddressPatch : BytecodePatch(

val setVisibilityConstIndex = accountSwitcherAccessibilityLabelInstruction.indexOfFirst {
(it as? WideLiteralInstruction)?.wideLiteral == accountSwitcherAccessibilityLabelId
} - 2
} - 1

val setVisibilityConstRegister = (accountSwitcherAccessibilityLabelInstruction[setVisibilityConstIndex] as OneRegisterInstruction).registerA
val toggleRegister = (setVisibilityConstRegister - 3)
val toggleRegister = (setVisibilityConstRegister + 1)

accountSwitcherAccessibilityLabelMethod.addInstructions(
setVisibilityConstIndex + 1, """
Expand Down

0 comments on commit 93d47cc

Please sign in to comment.