Merge "Fix download of non-smart-forwarded attachments" into honeycomb-mr1

This commit is contained in:
Marc Blank 2011-03-09 16:12:10 -08:00 committed by Android (Google) Code Review
commit 70e99aa97f

View File

@ -947,7 +947,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
boolean hasUnloadedAttachments = false; boolean hasUnloadedAttachments = false;
for (Attachment attachment : attachments) { for (Attachment attachment : attachments) {
if (attachment.mContentUri == null && if (attachment.mContentUri == null &&
((attachment.mFlags & Attachment.FLAG_SMART_FORWARD) != 0)) { ((attachment.mFlags & Attachment.FLAG_SMART_FORWARD) == 0)) {
attachment.mFlags |= Attachment.FLAG_DOWNLOAD_FORWARD; attachment.mFlags |= Attachment.FLAG_DOWNLOAD_FORWARD;
hasUnloadedAttachments = true; hasUnloadedAttachments = true;
if (Email.DEBUG){ if (Email.DEBUG){