Fix: lifecycle should be at least started
This commit is contained in:
parent
e73992f5df
commit
4ad46ed4a6
|
@ -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