mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -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() {
|
public void onPause() {
|
||||||
super.onPause();
|
super.onPause();
|
||||||
MessagingController.getInstance(getApplication()).removeListener(mListener);
|
MessagingController.getInstance(getApplication()).removeListener(mListener);
|
||||||
}
|
// Save email as draft when activity is changed (go to home screen, call received) or screen locked
|
||||||
|
|
||||||
// Save email as draft when activity is changed (go to home screen, call received)
|
|
||||||
@Override
|
|
||||||
public void onStop() {
|
|
||||||
super.onStop();
|
|
||||||
// don't do this if only changing orientations
|
// don't do this if only changing orientations
|
||||||
if ((getChangingConfigurations() & ActivityInfo.CONFIG_ORIENTATION) == 0) {
|
if ((getChangingConfigurations() & ActivityInfo.CONFIG_ORIENTATION) == 0) {
|
||||||
// don't do this if selecting signature or if "Encrypt" is checked or if adding an attachment
|
// 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