mirror of
https://github.com/revanced/revanced-patches
synced 2024-08-16 12:21:14 +02:00
fix(hide-email-address): invalid instruction offsets (#654)
This commit is contained in:
parent
dd73e52a6d
commit
1a3db44b5b
@ -55,10 +55,10 @@ class HideEmailAddressPatch : BytecodePatch(
|
|||||||
|
|
||||||
val setVisibilityConstIndex = accountSwitcherAccessibilityLabelInstruction.indexOfFirst {
|
val setVisibilityConstIndex = accountSwitcherAccessibilityLabelInstruction.indexOfFirst {
|
||||||
(it as? WideLiteralInstruction)?.wideLiteral == accountSwitcherAccessibilityLabelId
|
(it as? WideLiteralInstruction)?.wideLiteral == accountSwitcherAccessibilityLabelId
|
||||||
} - 2
|
} - 1
|
||||||
|
|
||||||
val setVisibilityConstRegister = (accountSwitcherAccessibilityLabelInstruction[setVisibilityConstIndex] as OneRegisterInstruction).registerA
|
val setVisibilityConstRegister = (accountSwitcherAccessibilityLabelInstruction[setVisibilityConstIndex] as OneRegisterInstruction).registerA
|
||||||
val toggleRegister = (setVisibilityConstRegister - 3)
|
val toggleRegister = (setVisibilityConstRegister + 1)
|
||||||
|
|
||||||
accountSwitcherAccessibilityLabelMethod.addInstructions(
|
accountSwitcherAccessibilityLabelMethod.addInstructions(
|
||||||
setVisibilityConstIndex + 1, """
|
setVisibilityConstIndex + 1, """
|
||||||
|
Loading…
Reference in New Issue
Block a user