From 9acb9b8df357d82e0bce0cb59705783d6b0003aa Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 13 Jun 2014 16:26:26 -0700 Subject: Fix recent cards background color to white. Change-Id: If5944e1d7b7f78c05792f5ebd2a9d8f4350fbc3d --- src/com/android/dialer/list/ShortcutCardsAdapter.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3