Use a single text view for count and date of calls.
This further reduces the number of views needed to render the call log.
At the same time, fix a few minor issues that are needed for pixel
perfect UI:
- Do not show the text when the item is new.
- Instead, for new items, highlight the date in the color associated
with the item (blue for voicemail, red for missed calls).
- Do not put a separating slash between the count and the date.
Bug: 5099652
Change-Id: I18b71463e7398f00f0fe8fecbeb334b67d618312
diff --git a/src/com/android/contacts/PhoneCallDetailsViews.java b/src/com/android/contacts/PhoneCallDetailsViews.java
index c07e337..fa06879 100644
--- a/src/com/android/contacts/PhoneCallDetailsViews.java
+++ b/src/com/android/contacts/PhoneCallDetailsViews.java
@@ -29,20 +29,15 @@
public final TextView nameView;
public final View callTypeView;
public final CallTypeIconsView callTypeIcons;
- public final TextView callTypeText;
- public final View callTypeSeparator;
- public final TextView dateView;
+ public final TextView callTypeAndDate;
public final TextView numberView;
private PhoneCallDetailsViews(TextView nameView, View callTypeView,
- CallTypeIconsView callTypeIcons, TextView callTypeText, View callTypeSeparator,
- TextView dateView, TextView numberView) {
+ CallTypeIconsView callTypeIcons, TextView callTypeAndDate, TextView numberView) {
this.nameView = nameView;
this.callTypeView = callTypeView;
this.callTypeIcons = callTypeIcons;
- this.callTypeText = callTypeText;
- this.callTypeSeparator = callTypeSeparator;
- this.dateView = dateView;
+ this.callTypeAndDate = callTypeAndDate;
this.numberView = numberView;
}
@@ -57,9 +52,7 @@
return new PhoneCallDetailsViews((TextView) view.findViewById(R.id.name),
view.findViewById(R.id.call_type),
(CallTypeIconsView) view.findViewById(R.id.call_type_icons),
- (TextView) view.findViewById(R.id.call_type_name),
- view.findViewById(R.id.call_type_separator),
- (TextView) view.findViewById(R.id.date),
+ (TextView) view.findViewById(R.id.call_count_and_date),
(TextView) view.findViewById(R.id.number));
}
@@ -69,8 +62,6 @@
new View(context),
new CallTypeIconsView(context),
new TextView(context),
- new View(context),
- new TextView(context),
new TextView(context));
}
}