Merge pull request #4994 from tgloureiro/fix_4991
Fix EmojiPopupDismissListener not being triggered after dismissing the EmojiPopup
This commit is contained in:
commit
73fba6a7b4
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…
x
Reference in New Issue
Block a user