From bb86a95acdd99f99bcc756826cd4f3c6803ba1dd Mon Sep 17 00:00:00 2001 From: Mindy Pereira Date: Fri, 2 Dec 2011 14:20:46 -0800 Subject: [PATCH] Like Gmail, we only want to set activated text to a diff color for two pane. Fixes b/5699511 Draft message is showing in white color text Change-Id: I9f15807936db8864a1752d56056b08ddfb32f121 --- src/com/android/email/activity/MessageListItem.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/email/activity/MessageListItem.java b/src/com/android/email/activity/MessageListItem.java index 34a029e87..0d8c27dd0 100644 --- a/src/com/android/email/activity/MessageListItem.java +++ b/src/com/android/email/activity/MessageListItem.java @@ -418,7 +418,8 @@ public class MessageListItem extends View { } private int getFontColor(int defaultColor) { - return isActivated() ? ACTIVATED_TEXT_COLOR : defaultColor; + return isActivated() && MessageListItemCoordinates.isMultiPane(mContext) ? + ACTIVATED_TEXT_COLOR : defaultColor; } @Override