summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--java/com/android/incallui/CallCardPresenter.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/java/com/android/incallui/CallCardPresenter.java b/java/com/android/incallui/CallCardPresenter.java
index 49f819bab..316b6cca0 100644
--- a/java/com/android/incallui/CallCardPresenter.java
+++ b/java/com/android/incallui/CallCardPresenter.java
@@ -768,12 +768,11 @@ public class CallCardPresenter
.setNumber(number)
.setName(primary.updateNameIfRestricted(name))
.setNameIsNumber(nameIsNumber)
- .setLabel(
+ .setLocation(
shouldShowLocationAsLabel(nameIsNumber, primaryContactInfo.shouldShowLocation)
? primaryContactInfo.location
: null)
- .setLocation(
- isChildNumberShown || isCallSubjectShown ? null : primaryContactInfo.label)
+ .setLabel(isChildNumberShown || isCallSubjectShown ? null : primaryContactInfo.label)
.setPhoto(primaryContactInfo.photo)
.setPhotoType(primaryContactInfo.photoType)
.setIsSipCall(primaryContactInfo.isSipCall)