diff options
author | Andrew Lee <anwlee@google.com> | 2014-06-13 16:26:26 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2014-06-13 16:26:26 -0700 |
commit | 9acb9b8df357d82e0bce0cb59705783d6b0003aa (patch) | |
tree | c36753f02c6d0adcd8062b295062c4abff75b8f8 | |
parent | 3307fdc5e84e456370e7630e4fe0300aba59cd26 (diff) |
Fix recent cards background color to white.
Change-Id: If5944e1d7b7f78c05792f5ebd2a9d8f4350fbc3d
-rw-r--r-- | src/com/android/dialer/list/ShortcutCardsAdapter.java | 6 |
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 |