mirror of
https://github.com/revanced/revanced-patches
synced 2024-11-09 00:07:01 +01:00
fix(youtube/theme-patch): respect app specific theme (#946)
This commit is contained in:
parent
3b0e86440e
commit
fe8d6c7b2c
@ -24,9 +24,9 @@ object ThemeSetterAppFingerprint : MethodFingerprint(
|
|||||||
Opcode.MOVE_RESULT_OBJECT,
|
Opcode.MOVE_RESULT_OBJECT,
|
||||||
Opcode.SGET_OBJECT,
|
Opcode.SGET_OBJECT,
|
||||||
Opcode.IF_NE,
|
Opcode.IF_NE,
|
||||||
Opcode.CONST,
|
Opcode.CONST, //target reference
|
||||||
Opcode.GOTO,
|
Opcode.GOTO,
|
||||||
Opcode.CONST,
|
Opcode.CONST, //target reference
|
||||||
Opcode.INVOKE_DIRECT,
|
Opcode.INVOKE_DIRECT,
|
||||||
Opcode.RETURN_OBJECT,
|
Opcode.RETURN_OBJECT,
|
||||||
Opcode.NEW_INSTANCE,
|
Opcode.NEW_INSTANCE,
|
||||||
@ -34,6 +34,6 @@ object ThemeSetterAppFingerprint : MethodFingerprint(
|
|||||||
Opcode.MOVE_RESULT_OBJECT,
|
Opcode.MOVE_RESULT_OBJECT,
|
||||||
Opcode.SGET_OBJECT,
|
Opcode.SGET_OBJECT,
|
||||||
Opcode.IF_NE,
|
Opcode.IF_NE,
|
||||||
Opcode.CONST,
|
Opcode.CONST, //target reference
|
||||||
)
|
)
|
||||||
)
|
)
|
@ -75,7 +75,15 @@ class SettingsPatch : BytecodePatch(
|
|||||||
scanResult.patternScanResult!!.endIndex + 1,
|
scanResult.patternScanResult!!.endIndex + 1,
|
||||||
buildInstructionsString(1)
|
buildInstructionsString(1)
|
||||||
)
|
)
|
||||||
|
addInstructions(
|
||||||
|
scanResult.patternScanResult!!.endIndex - 7,
|
||||||
|
buildInstructionsString(0)
|
||||||
|
)
|
||||||
|
|
||||||
|
addInstructions(
|
||||||
|
scanResult.patternScanResult!!.endIndex - 9,
|
||||||
|
buildInstructionsString(1)
|
||||||
|
)
|
||||||
addInstructions(
|
addInstructions(
|
||||||
mutableMethod.implementation!!.instructions.size - 2,
|
mutableMethod.implementation!!.instructions.size - 2,
|
||||||
buildInstructionsString(0)
|
buildInstructionsString(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user