Using crossfade to show live activities
This commit is contained in:
@@ -222,8 +222,10 @@ fun CheckIfLiveActivityIsOnline(note: Note, whenOnline: @Composable () -> Unit)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (online) {
|
Crossfade(targetState = online) {
|
||||||
whenOnline()
|
if (it) {
|
||||||
|
whenOnline()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user