Fix recent cards background color to white.
Change-Id: If5944e1d7b7f78c05792f5ebd2a9d8f4350fbc3d
diff --git a/src/com/android/dialer/list/ShortcutCardsAdapter.java b/src/com/android/dialer/list/ShortcutCardsAdapter.java
index dd198ec..766bdda 100644
--- a/src/com/android/dialer/list/ShortcutCardsAdapter.java
+++ b/src/com/android/dialer/list/ShortcutCardsAdapter.java
@@ -64,6 +64,7 @@
private final int mCallLogPaddingTop;
private final int mCallLogPaddingBottom;
private final int mCardMaxHorizontalClip;
+ private final int mShortCardBackgroundColor;
private final Context mContext;
@@ -124,6 +125,8 @@
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 @@
callLogItem.setAlpha(1);
callLogItem.setClipBounds(null);
setChildrenOpacity(callLogItem, 1.0f);
+
+ callLogItem.findViewById(R.id.call_log_row)
+ .setBackgroundColor(mShortCardBackgroundColor);
}
@Override