fix(Spoof SIM country): Validate patch option value correctly
This commit is contained in:
parent
bb386d0fdf
commit
8105463791
|
@ -46,7 +46,7 @@ object SpoofSimCountryPatch : AbstractTransformInstructionsPatch<Pair<Int, Strin
|
||||||
title,
|
title,
|
||||||
"ISO-3166-1 alpha-2 country code equivalent for the SIM provider's country code.",
|
"ISO-3166-1 alpha-2 country code equivalent for the SIM provider's country code.",
|
||||||
false,
|
false,
|
||||||
validator = { it: String? -> it?.uppercase() in countries.keys || it == null }
|
validator = { it: String? -> it == null || it.uppercase() in countries.values }
|
||||||
)
|
)
|
||||||
|
|
||||||
override fun filterMap(
|
override fun filterMap(
|
||||||
|
|
Loading…
Reference in a new issue