mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
Reverted a part of r1872.
Should save draft when the home button is pressed.
This commit is contained in:
parent
49e5ad4963
commit
eb7289f97b
@ -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 New Issue
Block a user