From cf143cda86155a6aa868dc6b4013cadf3bfd74ae Mon Sep 17 00:00:00 2001 From: Bao-Long Nguyen-Trong Date: Mon, 9 Nov 2009 06:02:46 +0000 Subject: [PATCH] Fixed issue with reply icon in subject in message view screen not being set properly when navigating around using up and down arrows --- .../android/email/activity/MessageView.java | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/com/android/email/activity/MessageView.java b/src/com/android/email/activity/MessageView.java index 5511e0622..63f45fd3d 100644 --- a/src/com/android/email/activity/MessageView.java +++ b/src/com/android/email/activity/MessageView.java @@ -262,13 +262,20 @@ public class MessageView extends K9Activity mSubjectView.setTextColor(0xff000000 | defaultSubjectColor ); } if ((msg.arg2 & FLAG_ANSWERED) != 0) { - Drawable answeredIcon = getResources().getDrawable( - R.drawable.ic_mms_answered_small); - mSubjectView.setCompoundDrawablesWithIntrinsicBounds( - answeredIcon, // left - null, // top - null, // right - null); // bottom + Drawable answeredIcon = getResources().getDrawable( + R.drawable.ic_mms_answered_small); + mSubjectView.setCompoundDrawablesWithIntrinsicBounds( + answeredIcon, // left + null, // top + null, // right + null); // bottom + } + else { + mSubjectView.setCompoundDrawablesWithIntrinsicBounds( + null, // left + null, // top + null, // right + null); // bottom } break;