From 81054637915a5399d15f546b2290b5d939e15732 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 24 Dec 2023 13:39:37 +0100 Subject: [PATCH] fix(Spoof SIM country): Validate patch option value correctly --- .../patches/all/telephony/sim/spoof/SpoofSimCountryPatch.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3f118f9c7..068861b02 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 @@ -46,7 +46,7 @@ object SpoofSimCountryPatch : AbstractTransformInstructionsPatch it?.uppercase() in countries.keys || it == null } + validator = { it: String? -> it == null || it.uppercase() in countries.values } ) override fun filterMap(