From 17d5eeade0b92dbcb5b192ac6b17c1ef73ca1f95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80lex=20Fiestas?= Date: Mon, 7 Mar 2016 11:38:19 +0100 Subject: [PATCH] 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 --- .../kde/kdeconnect/Plugins/TelephonyPlugin/TelephonyPlugin.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/kde/kdeconnect/Plugins/TelephonyPlugin/TelephonyPlugin.java b/src/org/kde/kdeconnect/Plugins/TelephonyPlugin/TelephonyPlugin.java index 9fdfcfc5..9f99e714 100644 --- a/src/org/kde/kdeconnect/Plugins/TelephonyPlugin/TelephonyPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/TelephonyPlugin/TelephonyPlugin.java @@ -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")) {