add destruction check before accessing the binding object

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-05-27 00:32:46 +02:00
parent 1ebc2bac24
commit 266a9f73ee
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -773,6 +773,7 @@ class ChatController(args: Bundle) :
}
private fun setupMentionAutocomplete() {
if (!isDestroyed && !isBeingDestroyed) {
val elevation = 6f
resources?.let {
val backgroundDrawable = ColorDrawable(it.getColor(R.color.bg_default))
@ -794,6 +795,7 @@ class ChatController(args: Bundle) :
}
}
}
}
override fun onAttach(view: View) {
super.onAttach(view)