From 246cf2cc92624e43bc7405cb32be9b560bb648c5 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 1 Oct 2023 06:15:56 +0200 Subject: [PATCH] fix: Use correct instruction --- .../patches/tumblr/timelinefilter/TimelineFilterPatch.kt | 2 +- .../fingerprints/TimelineFilterIntegrationFingerprint.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/tumblr/timelinefilter/TimelineFilterPatch.kt b/src/main/kotlin/app/revanced/patches/tumblr/timelinefilter/TimelineFilterPatch.kt index a919124c07..f82bb84612 100644 --- a/src/main/kotlin/app/revanced/patches/tumblr/timelinefilter/TimelineFilterPatch.kt +++ b/src/main/kotlin/app/revanced/patches/tumblr/timelinefilter/TimelineFilterPatch.kt @@ -46,7 +46,7 @@ object TimelineFilterPatch : BytecodePatch( addInstructionsWithLabels( filterInsertIndex, """ 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 """ ) } diff --git a/src/main/kotlin/app/revanced/patches/tumblr/timelinefilter/fingerprints/TimelineFilterIntegrationFingerprint.kt b/src/main/kotlin/app/revanced/patches/tumblr/timelinefilter/fingerprints/TimelineFilterIntegrationFingerprint.kt index 2b08f503c8..9e4a49e4b5 100644 --- a/src/main/kotlin/app/revanced/patches/tumblr/timelinefilter/fingerprints/TimelineFilterIntegrationFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/tumblr/timelinefilter/fingerprints/TimelineFilterIntegrationFingerprint.kt @@ -11,6 +11,6 @@ object TimelineFilterIntegrationFingerprint : MethodFingerprint( strings = listOf("BLOCKED_OBJECT_DUMMY"), opcodes = listOf( Opcode.CONST_STRING, // "BLOCKED_OBJECT_DUMMY" - Opcode.INVOKE_INTERFACE // List.add(^) + Opcode.INVOKE_VIRTUAL // HashSet.add(^) ) ) \ No newline at end of file