fix(hide-email-address): invalid instruction offsets (#654)
This commit is contained in:
parent
2de0923a94
commit
6c8f4474e9
1 changed files with 2 additions and 2 deletions
|
|
@ -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, """
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue