[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdeconnect-android] src/org/kde/kdeconnect/Plugins/TelephonyPlugin: Add fallback in case the
From: Àlex_Fiestas <afiestas () kde ! org>
Date: 2016-03-07 10:39:11
Message-ID: E1acsZD-0001wr-9F () scm ! kde ! org
[Download RAW message or body]
Git commit 17d5eeade0b92dbcb5b192ac6b17c1ef73ca1f95 by =C3=80lex Fiestas.
Committed on 07/03/2016 at 10:38.
Pushed by afiestas into branch 'master'.
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
M +2 -0 src/org/kde/kdeconnect/Plugins/TelephonyPlugin/TelephonyPlug=
in.java
http://commits.kde.org/kdeconnect-android/17d5eeade0b92dbcb5b192ac6b17c1ef7=
3ca1f95
diff --git a/src/org/kde/kdeconnect/Plugins/TelephonyPlugin/TelephonyPlugin=
.java b/src/org/kde/kdeconnect/Plugins/TelephonyPlugin/TelephonyPlugin.java
index 9fdfcfc..9f99e71 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")) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic