From 6bc7447ea2aabc659c7c47f2cabca398841b1a49 Mon Sep 17 00:00:00 2001 From: zyrouge Date: Sat, 20 Apr 2024 17:40:21 +0530 Subject: [PATCH] refactor: slower miniplayer transition --- .../zyrouge/symphony/ui/components/NowPlayingBottomBar.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/github/zyrouge/symphony/ui/components/NowPlayingBottomBar.kt b/app/src/main/java/io/github/zyrouge/symphony/ui/components/NowPlayingBottomBar.kt index efb88666..ae6feadb 100644 --- a/app/src/main/java/io/github/zyrouge/symphony/ui/components/NowPlayingBottomBar.kt +++ b/app/src/main/java/io/github/zyrouge/symphony/ui/components/NowPlayingBottomBar.kt @@ -168,9 +168,11 @@ fun NowPlayingBottomBar(context: ViewContext, insetPadding: Boolean = true) { targetState = currentSong, transitionSpec = { val from = fadeIn( - animationSpec = TransitionDurations.Normal.asTween(delayMillis = 150), + animationSpec = TransitionDurations.Normal.asTween( + delayMillis = TransitionDurations.Normal.milliseconds, + ), ) - val to = fadeOut(animationSpec = TransitionDurations.Fast.asTween()) + val to = fadeOut(TransitionDurations.Normal.asTween()) from togetherWith to }, ) { song ->