mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-17 12:30:07 +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…
Add table
Reference in a new issue