diff options
Diffstat (limited to 'java/com/android/dialer/calllog/ui/menu/Modules.java')
-rw-r--r-- | java/com/android/dialer/calllog/ui/menu/Modules.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/java/com/android/dialer/calllog/ui/menu/Modules.java b/java/com/android/dialer/calllog/ui/menu/Modules.java index fd0606ee0..67e51689d 100644 --- a/java/com/android/dialer/calllog/ui/menu/Modules.java +++ b/java/com/android/dialer/calllog/ui/menu/Modules.java @@ -130,17 +130,17 @@ final class Modules { if (!row.numberAttributes().getName().isEmpty()) { dialerContactBuilder.setNameOrNumber(row.numberAttributes().getName()); - } else if (!TextUtils.isEmpty(originalNumber)) { - dialerContactBuilder.setNameOrNumber(originalNumber); + if (row.formattedNumber() != null) { + dialerContactBuilder.setDisplayNumber(row.formattedNumber()); + } + } else if (!TextUtils.isEmpty(row.formattedNumber())) { + dialerContactBuilder.setNameOrNumber(row.formattedNumber()); } dialerContactBuilder.setNumberLabel(row.numberAttributes().getNumberTypeLabel()); dialerContactBuilder.setPhotoUri(row.numberAttributes().getPhotoUri()); dialerContactBuilder.setContactUri(row.numberAttributes().getLookupUri()); - if (row.formattedNumber() != null) { - dialerContactBuilder.setDisplayNumber(row.formattedNumber()); - } return dialerContactBuilder.build(); } } |