From ad2a8585b2a5ecbc5eb92dd23b0ab124aa8a2541 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Tue, 13 Jun 2023 00:50:36 +0200 Subject: [PATCH] fix(reddit/hide-ads): search for correct reference class descriptor --- .../revanced/patches/reddit/ad/general/patch/HideAdsPatch.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patches/reddit/ad/general/patch/HideAdsPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/ad/general/patch/HideAdsPatch.kt index fa324a17..be7f3f5a 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/ad/general/patch/HideAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/ad/general/patch/HideAdsPatch.kt @@ -73,7 +73,7 @@ class HideAdsPatch : BytecodePatch( val reference = (it as ReferenceInstruction).reference as MethodReference - reference.name == "add" && reference.definingClass == "Lava/util/ArrayList;" + reference.name == "add" && reference.definingClass == "Ljava/util/ArrayList;" } result.mutableMethod.removeInstruction(index)