Fix crash reported by the PlayStore, for release 1.3.4

I did not find a way to reproduce, but this change should add some safety
This commit is contained in:
Benoit Marty 2021-10-20 09:29:15 +02:00
parent 628ccdc328
commit 367795ee24
1 changed files with 5 additions and 3 deletions

View File

@ -641,9 +641,11 @@ class RoomDetailFragment @Inject constructor(
}
}
.setOnEmojiPopupDismissListener {
views.composerLayout.views.composerEmojiButton.apply {
contentDescription = getString(R.string.a11y_open_emoji_picker)
setImageResource(R.drawable.ic_insert_emoji)
if (isAdded) {
views.composerLayout.views.composerEmojiButton.apply {
contentDescription = getString(R.string.a11y_open_emoji_picker)
setImageResource(R.drawable.ic_insert_emoji)
}
}
}
.build(views.composerLayout.views.composerEditText)