Consider attachments for empty messages

Since we thought the message was empty, tapping on back doesn't save the
draft.

Bug: 5057044
Change-Id: I99d903430b0e0a40dc23eb805cf24961e9ca2301
This commit is contained in:
Ben Komalo 2011-07-20 17:15:35 -07:00
parent b7b0b04f50
commit 8d8814ed35

View File

@ -549,7 +549,8 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
&& (mCcView.length() == 0)
&& (mBccView.length() == 0)
&& (mSubjectView.length() == 0)
&& isBodyEmpty();
&& isBodyEmpty()
&& mAttachments.isEmpty();
}
private boolean isBodyEmpty() {