mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 21:55:10 +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:
@@ -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")) {
|
||||
|
Reference in New Issue
Block a user