mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-02-19 13:00:37 +01:00
handle null number at recents
This commit is contained in:
parent
a5c5a5f0b8
commit
b0a42fcf48
@ -86,7 +86,7 @@ class RecentsHelper(private val context: Context) {
|
||||
if (cursor?.moveToFirst() == true) {
|
||||
do {
|
||||
val id = cursor.getIntValue(Calls._ID)
|
||||
val number = cursor.getStringValue(Calls.NUMBER)
|
||||
val number = cursor.getStringValue(Calls.NUMBER) ?: continue
|
||||
var name = cursor.getStringValue(Calls.CACHED_NAME)
|
||||
if (name == null || name.isEmpty()) {
|
||||
name = number
|
||||
|
Loading…
x
Reference in New Issue
Block a user