mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-11 19:03:39 +00:00
Change creation of drafts to onStop method.
Drafts were created only on destroy of the conversation activity. Moved it to be on stop for the activity. Closes #1985
This commit is contained in:
parent
07bb07c342
commit
990902845a
@ -179,12 +179,18 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
|
||||
initializeReceivers();
|
||||
initializeResources();
|
||||
initializeDraft();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStart() {
|
||||
super.onStart();
|
||||
initializeDraft();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStop() {
|
||||
super.onStop();
|
||||
saveDraft();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -216,7 +222,6 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
protected void onDestroy() {
|
||||
unregisterReceiver(securityUpdateReceiver);
|
||||
unregisterReceiver(groupUpdateReceiver);
|
||||
saveDraft();
|
||||
MemoryCleaner.clean(masterSecret);
|
||||
super.onDestroy();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user