fix(hide-email-address): invalid instruction offsets (#654)

This commit is contained in:
OxrxL 2022-09-28 15:42:35 +02:00 committed by GitHub
parent 6f054c75b3
commit 93d47cc9c7

View File

@ -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, """