mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-25 22:54:29 +00:00
more android checks
This commit is contained in:
+3
-11
@@ -172,22 +172,14 @@ actual fun UserPickerScaffold(pickerState: MutableStateFlow<AnimatedViewState>,
|
||||
Box(Modifier.drawBehind { drawRect(animatedColor.value) }) {
|
||||
AnimatedVisibility(
|
||||
visible = pickerState.run { value.isVisible() },
|
||||
enter = if (appPlatform.isAndroid) {
|
||||
slideInVertically(
|
||||
enter = slideInVertically(
|
||||
initialOffsetY = { it },
|
||||
animationSpec = userPickerAnimSpec()
|
||||
) + fadeIn(animationSpec = userPickerAnimSpec())
|
||||
} else {
|
||||
fadeIn()
|
||||
},
|
||||
exit = if (appPlatform.isAndroid) {
|
||||
slideOutVertically(
|
||||
) + fadeIn(animationSpec = userPickerAnimSpec()),
|
||||
exit = slideOutVertically(
|
||||
targetOffsetY = { it },
|
||||
animationSpec = userPickerAnimSpec()
|
||||
) + fadeOut(animationSpec = userPickerAnimSpec())
|
||||
} else {
|
||||
fadeOut()
|
||||
}
|
||||
) {
|
||||
content()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user