Reverted a part of r1872.
Should save draft when the home button is pressed.
This commit is contained in:
parent
49e5ad4963
commit
eb7289f97b
1 changed files with 2 additions and 0 deletions
|
@ -601,6 +601,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
|
||||||
public void onPause()
|
public void onPause()
|
||||||
{
|
{
|
||||||
super.onPause();
|
super.onPause();
|
||||||
|
saveIfNeeded();
|
||||||
MessagingController.getInstance(getApplication()).removeListener(mListener);
|
MessagingController.getInstance(getApplication()).removeListener(mListener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -616,6 +617,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
|
||||||
protected void onSaveInstanceState(Bundle outState)
|
protected void onSaveInstanceState(Bundle outState)
|
||||||
{
|
{
|
||||||
super.onSaveInstanceState(outState);
|
super.onSaveInstanceState(outState);
|
||||||
|
saveIfNeeded();
|
||||||
ArrayList<Uri> attachments = new ArrayList<Uri>();
|
ArrayList<Uri> attachments = new ArrayList<Uri>();
|
||||||
for (int i = 0, count = mAttachments.getChildCount(); i < count; i++)
|
for (int i = 0, count = mAttachments.getChildCount(); i < count; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue