mirror of
https://github.com/revanced/revanced-patches
synced 2024-11-09 18:49:32 +01:00
fix: Use correct instruction
This commit is contained in:
parent
9b30c4bc50
commit
246cf2cc92
@ -46,7 +46,7 @@ object TimelineFilterPatch : BytecodePatch(
|
|||||||
addInstructionsWithLabels(
|
addInstructionsWithLabels(
|
||||||
filterInsertIndex, """
|
filterInsertIndex, """
|
||||||
const-string v$stringRegister, "$typeName"
|
const-string v$stringRegister, "$typeName"
|
||||||
invoke-interface { v$filterListRegister, v$stringRegister }, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
invoke-virtual { v$filterListRegister, v$stringRegister }, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,6 @@ object TimelineFilterIntegrationFingerprint : MethodFingerprint(
|
|||||||
strings = listOf("BLOCKED_OBJECT_DUMMY"),
|
strings = listOf("BLOCKED_OBJECT_DUMMY"),
|
||||||
opcodes = listOf(
|
opcodes = listOf(
|
||||||
Opcode.CONST_STRING, // "BLOCKED_OBJECT_DUMMY"
|
Opcode.CONST_STRING, // "BLOCKED_OBJECT_DUMMY"
|
||||||
Opcode.INVOKE_INTERFACE // List.add(^)
|
Opcode.INVOKE_VIRTUAL // HashSet.add(^)
|
||||||
)
|
)
|
||||||
)
|
)
|
Loading…
Reference in New Issue
Block a user