mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 18:45:19 +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() {
|
override fun onDestroy() {
|
||||||
|
if(::binding.isInitialized) {
|
||||||
viewModel.saveDraft(binding.inputBar.text.trim())
|
viewModel.saveDraft(binding.inputBar.text.trim())
|
||||||
cancelVoiceMessage()
|
cancelVoiceMessage()
|
||||||
tearDownRecipientObserver()
|
tearDownRecipientObserver()
|
||||||
|
}
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
}
|
}
|
||||||
// endregion
|
// endregion
|
||||||
|
Loading…
Reference in New Issue
Block a user