mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 01:07:47 +00:00
Fix crashes destroying conversation activity
This commit is contained in:
parent
4c52e66c0c
commit
09e46134e6
@ -852,9 +852,11 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
viewModel.saveDraft(binding.inputBar.text.trim())
|
||||
cancelVoiceMessage()
|
||||
tearDownRecipientObserver()
|
||||
if(::binding.isInitialized) {
|
||||
viewModel.saveDraft(binding.inputBar.text.trim())
|
||||
cancelVoiceMessage()
|
||||
tearDownRecipientObserver()
|
||||
}
|
||||
super.onDestroy()
|
||||
}
|
||||
// endregion
|
||||
|
Loading…
x
Reference in New Issue
Block a user