Do not show phone number in group item.
Since all calls in a group are from the same number, there is no need to
repeat showing the number.
Change-Id: Ic0a7f59edf4714eca423ab21ca1909a28a94c85c
diff --git a/res/layout/call_detail_history_item.xml b/res/layout/call_detail_history_item.xml
index 9377404..3b28cfc 100644
--- a/res/layout/call_detail_history_item.xml
+++ b/res/layout/call_detail_history_item.xml
@@ -39,7 +39,7 @@
android:textColor="?attr/call_log_secondary_text_color"
/>
<TextView
- android:id="@+id/number"
+ android:id="@+id/date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/call_type_text"
@@ -47,14 +47,6 @@
android:textColor="?attr/call_log_secondary_text_color"
/>
<TextView
- android:id="@+id/date"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/number"
- android:layout_alignLeft="@id/number"
- android:textColor="?attr/call_log_secondary_text_color"
- />
- <TextView
android:id="@+id/duration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
diff --git a/src/com/android/contacts/calllog/CallDetailHistoryAdapter.java b/src/com/android/contacts/calllog/CallDetailHistoryAdapter.java
index 82ac971..ae81a79 100644
--- a/src/com/android/contacts/calllog/CallDetailHistoryAdapter.java
+++ b/src/com/android/contacts/calllog/CallDetailHistoryAdapter.java
@@ -71,15 +71,12 @@
PhoneCallDetails details = mPhoneCallDetails[position];
ImageView callTypeIconView = (ImageView) convertView.findViewById(R.id.call_type_icon);
TextView callTypeTextView = (TextView) convertView.findViewById(R.id.call_type_text);
- TextView numberView = (TextView) convertView.findViewById(R.id.number);
TextView dateView = (TextView) convertView.findViewById(R.id.date);
TextView durationView = (TextView) convertView.findViewById(R.id.duration);
int callType = details.callTypes[0];
callTypeIconView.setImageDrawable(mCallTypeHelper.getCallTypeDrawable(callType));
callTypeTextView.setText(mCallTypeHelper.getCallTypeText(callType));
- // TODO: Add the label for this number as well.
- numberView.setText(details.number);
// Set the date.
CharSequence dateValue = DateUtils.formatDateRange(mContext, details.date, details.date,
DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_SHOW_DATE |