diff options
Diffstat (limited to 'java/com/android/contacts/common/util/ContactDisplayUtils.java')
-rw-r--r-- | java/com/android/contacts/common/util/ContactDisplayUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/android/contacts/common/util/ContactDisplayUtils.java b/java/com/android/contacts/common/util/ContactDisplayUtils.java index ff22f2880..a45394f50 100644 --- a/java/com/android/contacts/common/util/ContactDisplayUtils.java +++ b/java/com/android/contacts/common/util/ContactDisplayUtils.java @@ -216,7 +216,7 @@ public class ContactDisplayUtils { return null; } final Spannable spannable = new SpannableString(message); - int start = phoneNumber == null ? -1 : message.indexOf(phoneNumber); + int start = TextUtils.isEmpty(phoneNumber) ? -1 : message.indexOf(phoneNumber); while (start >= 0) { final int end = start + phoneNumber.length(); final TtsSpan ttsSpan = PhoneNumberUtilsCompat.createTtsSpan(phoneNumber); |