1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-02 08:35:08 -04:00

moved code from onStop() to onPause() since onStop() may never be called.

This commit is contained in:
ashley willis 2011-11-04 02:33:56 -05:00
parent 7f582f5a38
commit 2b77c6e35c

View File

@ -794,12 +794,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
public void onPause() {
super.onPause();
MessagingController.getInstance(getApplication()).removeListener(mListener);
}
// Save email as draft when activity is changed (go to home screen, call received)
@Override
public void onStop() {
super.onStop();
// Save email as draft when activity is changed (go to home screen, call received) or screen locked
// don't do this if only changing orientations
if ((getChangingConfigurations() & ActivityInfo.CONFIG_ORIENTATION) == 0) {
// don't do this if selecting signature or if "Encrypt" is checked or if adding an attachment