mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-11 21:53:43 +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();
|
initializeReceivers();
|
||||||
initializeResources();
|
initializeResources();
|
||||||
initializeDraft();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onStart() {
|
protected void onStart() {
|
||||||
super.onStart();
|
super.onStart();
|
||||||
|
initializeDraft();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onStop() {
|
||||||
|
super.onStop();
|
||||||
|
saveDraft();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -216,7 +222,6 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||||||
protected void onDestroy() {
|
protected void onDestroy() {
|
||||||
unregisterReceiver(securityUpdateReceiver);
|
unregisterReceiver(securityUpdateReceiver);
|
||||||
unregisterReceiver(groupUpdateReceiver);
|
unregisterReceiver(groupUpdateReceiver);
|
||||||
saveDraft();
|
|
||||||
MemoryCleaner.clean(masterSecret);
|
MemoryCleaner.clean(masterSecret);
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user