1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-26 01:28:50 -05:00

Temporarily disable our messagelist item backgrounds so we can see list item selection.

They'll return as a preference
This commit is contained in:
Jesse Vincent 2012-09-12 00:54:20 -04:00
parent ff52affed9
commit 4eff1a25e9

View File

@ -2197,14 +2197,14 @@ public class MessageList extends K9ListActivity implements OnItemClickListener {
holder.chip.setBackgroundDrawable(message.message.getFolder().getAccount().generateColorChip(message.read).drawable());
// TODO: Make these colors part of the theme
if (K9.getK9Theme() == K9.THEME_LIGHT) {
// Light theme: light grey background for read messages
view.setBackgroundColor(message.read ?
Color.rgb(229, 229, 229) : Color.rgb(255, 255, 255));
} else {
// Dark theme: dark grey background for unread messages
view.setBackgroundColor(message.read ? 0 : Color.rgb(45, 45, 45));
}
// if (K9.getK9Theme() == K9.THEME_LIGHT) {
// // Light theme: light grey background for read messages
// view.setBackgroundColor(message.read ? Color.rgb(229, 229, 229) : Color.rgb(255, 255, 255));
// } else {
// // Dark theme: dark grey background for unread messages
// view.setBackgroundColor(message.read ? 0 : Color.rgb(45, 45, 45));
// }
if ((message.message.getSubject() == null) || message.message.getSubject().equals("")) {
holder.subject.setText(getText(R.string.general_no_subject));