From a7c3cf2f5cfccc9a9f8f57fdb664e64ae8b7d605 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Fri, 22 Dec 2023 03:30:27 +0100 Subject: [PATCH] refactor(Spoof SIM country): Use existing function to register patch option --- .../all/telephony/sim/spoof/SpoofSimCountryPatch.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/all/telephony/sim/spoof/SpoofSimCountryPatch.kt b/src/main/kotlin/app/revanced/patches/all/telephony/sim/spoof/SpoofSimCountryPatch.kt index 654c1033..3f118f9c 100644 --- a/src/main/kotlin/app/revanced/patches/all/telephony/sim/spoof/SpoofSimCountryPatch.kt +++ b/src/main/kotlin/app/revanced/patches/all/telephony/sim/spoof/SpoofSimCountryPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.all.telephony.sim.spoof import app.revanced.patcher.extensions.InstructionExtensions.getInstruction import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction import app.revanced.patcher.patch.annotation.Patch -import app.revanced.patcher.patch.options.PatchOption +import app.revanced.patcher.patch.options.PatchOption.PatchExtensions.stringPatchOption import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod import app.revanced.patches.all.misc.transformation.AbstractTransformInstructionsPatch import com.android.tools.smali.dexlib2.iface.ClassDef @@ -39,16 +39,15 @@ object SpoofSimCountryPatch : AbstractTransformInstructionsPatch it?.uppercase() in countries.keys || it == null } - ).also(options::register) + ) override fun filterMap( classDef: ClassDef,