diff options
Diffstat (limited to 'src/com/android/dialer/calllog/PhoneNumberDisplayUtil.java')
-rw-r--r-- | src/com/android/dialer/calllog/PhoneNumberDisplayUtil.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/dialer/calllog/PhoneNumberDisplayUtil.java b/src/com/android/dialer/calllog/PhoneNumberDisplayUtil.java index e7fcde263..acfd32cf3 100644 --- a/src/com/android/dialer/calllog/PhoneNumberDisplayUtil.java +++ b/src/com/android/dialer/calllog/PhoneNumberDisplayUtil.java @@ -71,14 +71,14 @@ public class PhoneNumberDisplayUtil { int presentation, CharSequence formattedNumber, boolean isVoicemail) { - if (!TextUtils.isEmpty(formattedNumber)) { - return formattedNumber; - } - final CharSequence displayName = getDisplayName(context, accountHandle, number, presentation, isVoicemail); if (!TextUtils.isEmpty(displayName)) { return displayName; + } + + if (!TextUtils.isEmpty(formattedNumber)) { + return formattedNumber; } else if (!TextUtils.isEmpty(number)) { return number; } else { |