diff options
author | wangqi <wangqi@google.com> | 2017-09-28 17:39:40 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-10-02 16:13:15 -0700 |
commit | ae6c8ec0d86d2c4756ab876b8ee44249713c86fb (patch) | |
tree | 938cfe131acc6185349562b329af09f262474a30 /java/com/android/incallui/incall/protocol | |
parent | cb097482c41778c446f66690c10ce06f17463358 (diff) |
Fix bug that phone number is shown for local contacts.
This is a regression caused by cl/169961072.
This change will make sure phone number is only shown on top row for non-local contacts if the name is not number and the call is active.
Bug: 67047386
Test: TopRowTest
PiperOrigin-RevId: 170424277
Change-Id: I9b3ab9432a938b2fb1c6632f2d9404bee413588f
Diffstat (limited to 'java/com/android/incallui/incall/protocol')
-rw-r--r-- | java/com/android/incallui/incall/protocol/PrimaryInfo.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/com/android/incallui/incall/protocol/PrimaryInfo.java b/java/com/android/incallui/incall/protocol/PrimaryInfo.java index 7fe0a0f6a..69eee20ff 100644 --- a/java/com/android/incallui/incall/protocol/PrimaryInfo.java +++ b/java/com/android/incallui/incall/protocol/PrimaryInfo.java @@ -36,6 +36,7 @@ public class PrimaryInfo { public final boolean isContactPhotoShown; public final boolean isWorkCall; public final boolean isSpam; + public final boolean isLocalContact; public final boolean answeringDisconnectsOngoingCall; public final boolean shouldShowLocation; // Used for consistent LetterTile coloring. @@ -60,6 +61,7 @@ public class PrimaryInfo { false, false, false, + false, null, null, true, @@ -78,6 +80,7 @@ public class PrimaryInfo { boolean isContactPhotoShown, boolean isWorkCall, boolean isSpam, + boolean isLocalContact, boolean answeringDisconnectsOngoingCall, boolean shouldShowLocation, @Nullable String contactInfoLookupKey, @@ -95,6 +98,7 @@ public class PrimaryInfo { this.isContactPhotoShown = isContactPhotoShown; this.isWorkCall = isWorkCall; this.isSpam = isSpam; + this.isLocalContact = isLocalContact; this.answeringDisconnectsOngoingCall = answeringDisconnectsOngoingCall; this.shouldShowLocation = shouldShowLocation; this.contactInfoLookupKey = contactInfoLookupKey; |