diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-12-08 19:56:09 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-12-08 19:56:09 +0000 |
commit | ae916b9c3304621d4733e53a081df8c384c6a868 (patch) | |
tree | 913c4b07fffd2b9eb99ff1f530e050be3471f8f3 /java/com/android/dialer/calllog/ui/NewCallLogViewHolder.java | |
parent | c9d21e15e6bd69496b6de3a1e4168d96d0132975 (diff) | |
parent | afb1d0fa6c9421a8a26c8ad9c5630a3f6f34a8f0 (diff) |
Merge "In the coalesced call log, replace column NUMBER_CALLS with a new column COALESCED_IDS."
Diffstat (limited to 'java/com/android/dialer/calllog/ui/NewCallLogViewHolder.java')
-rw-r--r-- | java/com/android/dialer/calllog/ui/NewCallLogViewHolder.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/com/android/dialer/calllog/ui/NewCallLogViewHolder.java b/java/com/android/dialer/calllog/ui/NewCallLogViewHolder.java index 16147f604..629a9a289 100644 --- a/java/com/android/dialer/calllog/ui/NewCallLogViewHolder.java +++ b/java/com/android/dialer/calllog/ui/NewCallLogViewHolder.java @@ -89,8 +89,9 @@ final class NewCallLogViewHolder extends RecyclerView.ViewHolder { private void setNumberCalls(CoalescedRow row) { // TODO(zachh): Number of calls shouldn't be text, but a circle with a number inside. - if (row.numberCalls() > 1) { - primaryTextView.append(String.format(Locale.getDefault(), " (%d)", row.numberCalls())); + int numberCalls = row.coalescedIds().getCoalescedIdCount(); + if (numberCalls > 1) { + primaryTextView.append(String.format(Locale.getDefault(), " (%d)", numberCalls)); } } |