mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
Fix message list item background color
This commit is contained in:
parent
ae28b1aa38
commit
6b3a3f7ee0
@ -1880,7 +1880,7 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Background indicator
|
// Background color
|
||||||
if (selected || K9.useBackgroundAsUnreadIndicator()) {
|
if (selected || K9.useBackgroundAsUnreadIndicator()) {
|
||||||
int res;
|
int res;
|
||||||
if (selected) {
|
if (selected) {
|
||||||
@ -1894,6 +1894,8 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
|
|||||||
TypedValue outValue = new TypedValue();
|
TypedValue outValue = new TypedValue();
|
||||||
getActivity().getTheme().resolveAttribute(res, outValue, true);
|
getActivity().getTheme().resolveAttribute(res, outValue, true);
|
||||||
view.setBackgroundColor(outValue.data);
|
view.setBackgroundColor(outValue.data);
|
||||||
|
} else {
|
||||||
|
view.setBackgroundColor(Color.TRANSPARENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mActiveMessage != null) {
|
if (mActiveMessage != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user