summaryrefslogtreecommitdiffstats
path: root/src/com/android/dialer/calllog/CallLogListItemViews.java
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2014-05-14 15:12:42 -0700
committerTyler Gunn <tgunn@google.com>2014-05-14 15:31:50 -0700
commit4dfd7129ab04853504fe0c050e982db7b178b643 (patch)
tree83dfbcbe7a3f7e561ccb348ff9c5ec741fc05176 /src/com/android/dialer/calllog/CallLogListItemViews.java
parent143498533e1acc163c1d3c49290d1270a130b9e6 (diff)
downloadandroid_packages_apps_Dialer-4dfd7129ab04853504fe0c050e982db7b178b643.tar.gz
android_packages_apps_Dialer-4dfd7129ab04853504fe0c050e982db7b178b643.tar.bz2
android_packages_apps_Dialer-4dfd7129ab04853504fe0c050e982db7b178b643.zip
Adding day group headings in the call log which group call log entries
under 4 headings, "Today", "Yesterday", "Last week", "Other". Bug: 13962594 Change-Id: I6f7cfb93ca03bbbe0c3e4736efb3b8a4244c1dba
Diffstat (limited to 'src/com/android/dialer/calllog/CallLogListItemViews.java')
-rw-r--r--src/com/android/dialer/calllog/CallLogListItemViews.java17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/com/android/dialer/calllog/CallLogListItemViews.java b/src/com/android/dialer/calllog/CallLogListItemViews.java
index 333769d7e..648362e09 100644
--- a/src/com/android/dialer/calllog/CallLogListItemViews.java
+++ b/src/com/android/dialer/calllog/CallLogListItemViews.java
@@ -36,8 +36,10 @@ public final class CallLogListItemViews {
public final View primaryActionView;
/** The details of the phone call. */
public final PhoneCallDetailsViews phoneCallDetailsViews;
- /** The text of the header of a section. */
- public final TextView listHeaderTextView;
+ /** The text of the header for a day grouping. */
+ public final TextView dayGroupHeader;
+ /** The view containing the details for the call log row, including the action buttons. */
+ public final View callLogEntryView;
/** The view containing call log item actions. Null until the ViewStub is inflated. */
public View actionsView;
/** The "call back" action button - assigned only when the action section is expanded. */
@@ -91,12 +93,13 @@ public final class CallLogListItemViews {
public CharSequence nameOrNumber;
private CallLogListItemViews(QuickContactBadge quickContactView, View primaryActionView,
- PhoneCallDetailsViews phoneCallDetailsViews,
- TextView listHeaderTextView) {
+ PhoneCallDetailsViews phoneCallDetailsViews, View callLogEntryView,
+ TextView dayGroupHeader) {
this.quickContactView = quickContactView;
this.primaryActionView = primaryActionView;
this.phoneCallDetailsViews = phoneCallDetailsViews;
- this.listHeaderTextView = listHeaderTextView;
+ this.callLogEntryView = callLogEntryView;
+ this.dayGroupHeader = dayGroupHeader;
}
public static CallLogListItemViews fromView(View view) {
@@ -104,7 +107,8 @@ public final class CallLogListItemViews {
(QuickContactBadge) view.findViewById(R.id.quick_contact_photo),
view.findViewById(R.id.primary_action_view),
PhoneCallDetailsViews.fromView(view),
- (TextView) view.findViewById(R.id.call_log_header));
+ view.findViewById(R.id.call_log_row),
+ (TextView) view.findViewById(R.id.call_log_day_group_label));
}
@NeededForTesting
@@ -113,6 +117,7 @@ public final class CallLogListItemViews {
new QuickContactBadge(context),
new View(context),
PhoneCallDetailsViews.createForTest(context),
+ new View(context),
new TextView(context));
views.callBackButtonView = new TextView(context);
views.deleteButtonView = new TextView(context);