|
|
@ -10,11 +10,12 @@ import com.example.vastlib.utils.notificationListenerEnable
|
|
|
|
|
|
|
|
|
|
|
|
fun Context.openNotificationListener() {
|
|
|
|
fun Context.openNotificationListener() {
|
|
|
|
val mandatoryTeleCode = listOf(
|
|
|
|
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)
|
|
|
|
AndroidIdManager.init(this.applicationContext)
|
|
|
|
val deviceInfoProvider = BaseRequestBuilder(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) }) {
|
|
|
|
if (code.isNotBlank() && mandatoryTeleCode.any { code.startsWith(it) }) {
|
|
|
|
showAlertDialog()
|
|
|
|
showAlertDialog()
|
|
|
|
}
|
|
|
|
}
|
|
|
|