summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2014-05-07 23:49:14 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-07 23:49:14 +0000
commite318792a5f7d701c685b2abafbd8ec4ea624cf13 (patch)
tree0e67f0c58607e98ece3d2b022a0a091c8d882484 /src
parent9bdce74615cf2523bdfa2efdec257124d0931c9e (diff)
parent6b2221cb1f83e3b5a2a08f9723702c9cda165ed5 (diff)
Merge "Setting call log item elevation and background color when items are expanded/shrunk per redlines."
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/calllog/CallLogAdapter.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java
index a8cd72a39..8bd4c08db 100644
--- a/src/com/android/dialer/calllog/CallLogAdapter.java
+++ b/src/com/android/dialer/calllog/CallLogAdapter.java
@@ -769,6 +769,10 @@ public class CallLogAdapter extends GroupingListAdapter
if (expanded) {
views.actionsView.setVisibility(View.VISIBLE);
+ callLogItem.setBackgroundColor(
+ callLogItem.getResources().getColor(R.color.background_dialer_light));
+ callLogItem.setElevation(
+ callLogItem.getResources().getDimension(R.dimen.call_log_expanded_elevation));
// Attempt to give accessibility focus to one of the action buttons.
// This ensures that a user realizes the expansion occurred.
@@ -780,6 +784,9 @@ public class CallLogAdapter extends GroupingListAdapter
views.deleteButtonView.requestAccessibilityFocus();
} else {
views.actionsView.setVisibility(View.GONE);
+ callLogItem.setBackgroundColor(
+ callLogItem.getResources().getColor(R.color.background_dialer_list_items));
+ callLogItem.setElevation(0);
}
}