Reverted a part of r1872.

Should save draft when the home button is pressed.
This commit is contained in:
Koji Arai 2010-07-12 14:57:42 +00:00
parent 49e5ad4963
commit eb7289f97b

View file

@ -601,6 +601,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
public void onPause()
{
super.onPause();
saveIfNeeded();
MessagingController.getInstance(getApplication()).removeListener(mListener);
}
@ -616,6 +617,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
protected void onSaveInstanceState(Bundle outState)
{
super.onSaveInstanceState(outState);
saveIfNeeded();
ArrayList<Uri> attachments = new ArrayList<Uri>();
for (int i = 0, count = mAttachments.getChildCount(); i < count; i++)
{