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