mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Merge pull request #4994 from tgloureiro/fix_4991
Fix EmojiPopupDismissListener not being triggered after dismissing the EmojiPopup
This commit is contained in:
commit
73fba6a7b4
2 changed files with 2 additions and 1 deletions
1
changelog.d/4991.bugfix
Normal file
1
changelog.d/4991.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
EmojiPopupDismissListener not being triggered after dismissing the EmojiPopup
|
|
@ -675,7 +675,7 @@ class RoomDetailFragment @Inject constructor(
|
|||
*/
|
||||
private fun EmojiPopup.Builder.setOnEmojiPopupDismissListenerLifecycleAware(action: () -> Unit): EmojiPopup.Builder {
|
||||
return setOnEmojiPopupDismissListener {
|
||||
if (lifecycle.currentState == Lifecycle.State.STARTED) {
|
||||
if (lifecycle.currentState.isAtLeast(Lifecycle.State.STARTED)) {
|
||||
action()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue