adding some extra checks to avoid showing blocked numbers on some places
This commit is contained in:
parent
5956aef897
commit
cfda56973d
3 changed files with 11 additions and 2 deletions
|
|
@ -368,7 +368,7 @@ fun Context.getSuggestedContacts(): ArrayList<Contact> {
|
|||
queryCursor(uri, projection, selection, selectionArgs, sortOrder, showErrors = true) { cursor ->
|
||||
val senderNumber = cursor.getStringValue(Sms.ADDRESS)
|
||||
val namePhoto = getNameAndPhotoFromPhoneNumber(senderNumber)
|
||||
if (namePhoto == null || namePhoto.name == senderNumber) {
|
||||
if (namePhoto == null || namePhoto.name == senderNumber || isNumberBlocked(senderNumber)) {
|
||||
return@queryCursor
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue