Fix visibility of meeting invite controls

* Was checking for any meeting related email
* Changed to look specifically for incoming meeting invites
* Bug noticed during debugging

Change-Id: I8f43d7a506939dbfc0504f96b249e5c17107bf47
This commit is contained in:
Marc Blank 2010-02-23 14:44:07 -08:00
parent d12bb138b0
commit 438dfe64ec

View File

@ -1288,7 +1288,8 @@ public class MessageView extends Activity implements OnClickListener {
mCcContainerView.setVisibility((friendlyCc != null) ? View.VISIBLE : View.GONE); mCcContainerView.setVisibility((friendlyCc != null) ? View.VISIBLE : View.GONE);
mAttachmentIcon.setVisibility(message.mAttachments != null ? View.VISIBLE : View.GONE); mAttachmentIcon.setVisibility(message.mAttachments != null ? View.VISIBLE : View.GONE);
mFavoriteIcon.setImageDrawable(message.mFlagFavorite ? mFavoriteIconOn : mFavoriteIconOff); mFavoriteIcon.setImageDrawable(message.mFlagFavorite ? mFavoriteIconOn : mFavoriteIconOff);
mInviteSection.setVisibility(!TextUtils.isEmpty(message.mMeetingInfo) ? // Show the message invite section if we're an incoming meeting invitation only
mInviteSection.setVisibility((message.mFlags & Message.FLAG_INCOMING_MEETING_INVITE) != 0 ?
View.VISIBLE : View.GONE); View.VISIBLE : View.GONE);
// Handle partially-loaded email, as follows: // Handle partially-loaded email, as follows: