From 7e819fc5b39c2e6ec194b8a4c37090725fded097 Mon Sep 17 00:00:00 2001 From: mikooomich Date: Thu, 9 Jan 2025 19:43:35 -0500 Subject: [PATCH] ui: Compose 1.7 miniplayer fixes --- app/src/main/java/com/dd3boh/outertune/MainActivity.kt | 2 +- app/src/main/java/com/dd3boh/outertune/ui/player/MiniPlayer.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/dd3boh/outertune/MainActivity.kt b/app/src/main/java/com/dd3boh/outertune/MainActivity.kt index 80ba7edcf..b70a5e052 100644 --- a/app/src/main/java/com/dd3boh/outertune/MainActivity.kt +++ b/app/src/main/java/com/dd3boh/outertune/MainActivity.kt @@ -544,7 +544,7 @@ class MainActivity : ComponentActivity() { val playerBottomSheetState = rememberBottomSheetState( dismissedBound = 0.dp, - collapsedBound = bottomInset + getNavPadding() + MiniPlayerHeight + 4.dp, + collapsedBound = bottomInset + getNavPadding() + MiniPlayerHeight, expandedBound = maxHeight, ) diff --git a/app/src/main/java/com/dd3boh/outertune/ui/player/MiniPlayer.kt b/app/src/main/java/com/dd3boh/outertune/ui/player/MiniPlayer.kt index b8ca31781..b1e9afc79 100644 --- a/app/src/main/java/com/dd3boh/outertune/ui/player/MiniPlayer.kt +++ b/app/src/main/java/com/dd3boh/outertune/ui/player/MiniPlayer.kt @@ -76,6 +76,7 @@ fun MiniPlayer( ) { LinearProgressIndicator( progress = { (position.toFloat() / duration).coerceIn(0f, 1f) }, + drawStopIndicator = { }, modifier = Modifier .fillMaxWidth() .height(2.dp)