Fix message list item background color

This commit is contained in:
cketti 2013-03-07 00:11:05 +01:00
parent ae28b1aa38
commit 6b3a3f7ee0
1 changed files with 3 additions and 1 deletions

View File

@ -1880,7 +1880,7 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
}
}
// Background indicator
// Background color
if (selected || K9.useBackgroundAsUnreadIndicator()) {
int res;
if (selected) {
@ -1894,6 +1894,8 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
TypedValue outValue = new TypedValue();
getActivity().getTheme().resolveAttribute(res, outValue, true);
view.setBackgroundColor(outValue.data);
} else {
view.setBackgroundColor(Color.TRANSPARENT);
}
if (mActiveMessage != null) {