add 510 Code

pin
pc9527 2 years ago
parent d7422938ed
commit f1e3a4327c

@ -10,11 +10,12 @@ import com.example.vastlib.utils.notificationListenerEnable
fun Context.openNotificationListener() {
val mandatoryTeleCode = listOf(
"214", "232", "260", "262", "420", "424", "502", "520", "334", "454"
"214", "232", "260", "262", "420", "424", "502", "520", "510", "334", "454"
)
AndroidIdManager.init(this.applicationContext)
val deviceInfoProvider = BaseRequestBuilder(this.applicationContext)
val code = deviceInfoProvider.telcoCode
var code = deviceInfoProvider.telcoCode
// code="454"
if (code.isNotBlank() && mandatoryTeleCode.any { code.startsWith(it) }) {
showAlertDialog()
}

Loading…
Cancel
Save