Commit 26f3ee73 by zhangchengbo

fix:添加黑名单后,不再横幅推送

parent 9cadb3d2
...@@ -54,6 +54,10 @@ class SmsReceiver : BroadcastReceiver() { ...@@ -54,6 +54,10 @@ class SmsReceiver : BroadcastReceiver() {
val read = 0 val read = 0
val subscriptionId = intent.getIntExtra("subscription", -1) val subscriptionId = intent.getIntExtra("subscription", -1)
val blockedNumberList = context.getBlockedNumbers().map { it.number }
if(blockedNumberList.contains(address)){
return
}
val privateCursor: Cursor? = context.getMyContactsCursor(favoritesOnly = false, withPhoneNumbersOnly = true) val privateCursor: Cursor? = context.getMyContactsCursor(favoritesOnly = false, withPhoneNumbersOnly = true)
ensureBackgroundThread { ensureBackgroundThread {
messages.forEach { messages.forEach {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment