1
mirror of https://github.com/revanced/revanced-patches synced 2024-11-19 03:57:27 +01:00

fix(reddit/hide-ads): search for correct reference class descriptor

This commit is contained in:
oSumAtrIX 2023-06-13 00:50:36 +02:00
parent 18ec8f46dd
commit ad2a8585b2
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -73,7 +73,7 @@ class HideAdsPatch : BytecodePatch(
val reference = (it as ReferenceInstruction).reference as MethodReference 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) result.mutableMethod.removeInstruction(index)