mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
moved code from onStop() to onPause() since onStop() may never be called.
This commit is contained in:
parent
7f582f5a38
commit
2b77c6e35c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user