From 4390de1e92ff430ebe2f16a3c28b05a3b372ac1c Mon Sep 17 00:00:00 2001 From: Avently <7953703+avently@users.noreply.github.com> Date: Thu, 6 Oct 2022 02:04:10 +0300 Subject: [PATCH] Experiments --- .../simplex/app/views/helpers/AnimationUtils.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/android/app/src/main/java/chat/simplex/app/views/helpers/AnimationUtils.kt b/apps/android/app/src/main/java/chat/simplex/app/views/helpers/AnimationUtils.kt index 7e6c3dd547..4a63e28511 100644 --- a/apps/android/app/src/main/java/chat/simplex/app/views/helpers/AnimationUtils.kt +++ b/apps/android/app/src/main/java/chat/simplex/app/views/helpers/AnimationUtils.kt @@ -58,28 +58,28 @@ fun ExperimentalAnimationNav(chatModel: ChatModel, setPerformLA: (Boolean) -> Un enterTransition = { when (initialState.destination.route) { "RIGHT" -> - slideIntoContainer(AnimatedContentScope.SlideDirection.Left, animationSpec = tween(700)) + slideIntoContainer(AnimatedContentScope.SlideDirection.Left, animationSpec = tween(250)) else -> null } }, exitTransition = { when (targetState.destination.route) { "RIGHT" -> - slideOutOfContainer(AnimatedContentScope.SlideDirection.Left, animationSpec = tween(700)) + slideOutOfContainer(AnimatedContentScope.SlideDirection.Left, animationSpec = tween(250)) else -> null } }, popEnterTransition = { when (initialState.destination.route) { "RIGHT" -> - slideIntoContainer(AnimatedContentScope.SlideDirection.Right, animationSpec = tween(700)) + slideIntoContainer(AnimatedContentScope.SlideDirection.Right, animationSpec = tween(250)) else -> null } }, popExitTransition = { when (targetState.destination.route) { "RIGHT" -> - slideOutOfContainer(AnimatedContentScope.SlideDirection.Right, animationSpec = tween(700)) + slideOutOfContainer(AnimatedContentScope.SlideDirection.Right, animationSpec = tween(250)) else -> null } } @@ -94,28 +94,28 @@ fun ExperimentalAnimationNav(chatModel: ChatModel, setPerformLA: (Boolean) -> Un enterTransition = { when (initialState.destination.route) { "LEFT" -> - slideIntoContainer(AnimatedContentScope.SlideDirection.Left, animationSpec = tween(700)) + slideIntoContainer(AnimatedContentScope.SlideDirection.Left, animationSpec = tween(250)) else -> null } }, exitTransition = { when (targetState.destination.route) { "LEFT" -> - slideOutOfContainer(AnimatedContentScope.SlideDirection.Left, animationSpec = tween(700)) + slideOutOfContainer(AnimatedContentScope.SlideDirection.Left, animationSpec = tween(250)) else -> null } }, popEnterTransition = { when (initialState.destination.route) { "LEFT" -> - slideIntoContainer(AnimatedContentScope.SlideDirection.Right, animationSpec = tween(700)) + slideIntoContainer(AnimatedContentScope.SlideDirection.Right, animationSpec = tween(250)) else -> null } }, popExitTransition = { when (targetState.destination.route) { "LEFT" -> - slideOutOfContainer(AnimatedContentScope.SlideDirection.Right, animationSpec = tween(700)) + slideOutOfContainer(AnimatedContentScope.SlideDirection.Right, animationSpec = tween(250)) else -> null } }