mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-31 11:32:00 +00:00
add destruction check before accessing the binding object
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
1ebc2bac24
commit
266a9f73ee
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user