mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Fix #4991: lifecycle should be at least started
This commit is contained in:
parent
e73992f5df
commit
4dea7131b1
1 changed files with 1 additions and 1 deletions
|
@ -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