summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-06-13 23:35:14 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-06-12 05:34:42 +0000
commita20f13df8733f559399bdcf10b046576d8c2cbbd (patch)
tree658334eeef5578ae3f5193cb7466a346f3952810
parent13cb7d712637a616742996fa998c93888c07e0d9 (diff)
parent9acb9b8df357d82e0bce0cb59705783d6b0003aa (diff)
Merge "Fix recent cards background color to white."
-rw-r--r--src/com/android/dialer/list/ShortcutCardsAdapter.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/dialer/list/ShortcutCardsAdapter.java b/src/com/android/dialer/list/ShortcutCardsAdapter.java
index dd198ec34..766bddaa5 100644
--- a/src/com/android/dialer/list/ShortcutCardsAdapter.java
+++ b/src/com/android/dialer/list/ShortcutCardsAdapter.java
@@ -64,6 +64,7 @@ public class ShortcutCardsAdapter extends BaseAdapter {
private final int mCallLogPaddingTop;
private final int mCallLogPaddingBottom;
private final int mCardMaxHorizontalClip;
+ private final int mShortCardBackgroundColor;
private final Context mContext;
@@ -124,6 +125,8 @@ public class ShortcutCardsAdapter extends BaseAdapter {
resources.getDimensionPixelSize(R.dimen.recent_call_log_item_padding_top);
mCallLogPaddingBottom =
resources.getDimensionPixelSize(R.dimen.recent_call_log_item_padding_bottom);
+ mShortCardBackgroundColor = resources.getColor(R.color.call_log_expanded_background_color);
+
mCallLogAdapter = callLogAdapter;
mObserver = new CustomDataSetObserver();
@@ -257,6 +260,9 @@ public class ShortcutCardsAdapter extends BaseAdapter {
callLogItem.setAlpha(1);
callLogItem.setClipBounds(null);
setChildrenOpacity(callLogItem, 1.0f);
+
+ callLogItem.findViewById(R.id.call_log_row)
+ .setBackgroundColor(mShortCardBackgroundColor);
}
@Override