mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 05:37:43 +00:00
Add fallback in case the contact does not have a name
Basically set the phoneNumber as name as it was before this change. REVIEW: 127297
This commit is contained in:
parent
76eb88b51f
commit
17d5eeade0
@ -106,6 +106,8 @@ public class TelephonyPlugin extends Plugin {
|
||||
|
||||
if (contactInfo.containsKey("name")) {
|
||||
np.set("contactName", contactInfo.get("name"));
|
||||
} else {
|
||||
np.set("contactName", phoneNumber);
|
||||
}
|
||||
|
||||
if (contactInfo.containsKey("photoID")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user