summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Dialer <noreply@google.com>2017-06-19 13:19:40 -0700
committerEric Erfanian <erfanian@google.com>2017-06-20 15:23:49 +0000
commit1b858f2dd10e04699440dfb44b6bd8d751a433d1 (patch)
tree0165e64c71710bb4ba6112d73c84bee476e807d8
parent2d6bc36921c4a41b17bc1870c133ee42f1388b51 (diff)
Fix bug that number is duplicated until location is resolved.
Number shouldn't be shown in bottom row if it's already shown on name row. Test: TH PiperOrigin-RevId: 159468064 Change-Id: Ieb3eff270d247dd712d2fbf6fe2428038ba643c3
-rw-r--r--java/com/android/incallui/contactgrid/BottomRow.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/android/incallui/contactgrid/BottomRow.java b/java/com/android/incallui/contactgrid/BottomRow.java
index d0ff1926a..76e0289a5 100644
--- a/java/com/android/incallui/contactgrid/BottomRow.java
+++ b/java/com/android/incallui/contactgrid/BottomRow.java
@@ -124,7 +124,7 @@ public class BottomRow {
if (primaryInfo.location != null) {
return primaryInfo.location;
}
- if (!TextUtils.isEmpty(primaryInfo.number)) {
+ if (!primaryInfo.nameIsNumber && !TextUtils.isEmpty(primaryInfo.number)) {
CharSequence spannedNumber = spanDisplayNumber(primaryInfo.number);
if (primaryInfo.label == null) {
return spannedNumber;