From 561e36e1f6dfa7d5f2dbd261c3ce20f921d7e06b Mon Sep 17 00:00:00 2001 From: vfsfitvnm Date: Sat, 23 Jul 2022 13:05:58 +0200 Subject: [PATCH] Remove unused code from BottomSheet --- .../vfsfitvnm/vimusic/ui/components/BottomSheet.kt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/components/BottomSheet.kt b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/components/BottomSheet.kt index 90a1285..27e56cd 100644 --- a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/components/BottomSheet.kt +++ b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/components/BottomSheet.kt @@ -4,7 +4,6 @@ import androidx.activity.compose.BackHandler import androidx.compose.animation.core.* import androidx.compose.foundation.clickable import androidx.compose.foundation.gestures.DraggableState -import androidx.compose.foundation.gestures.detectTapGestures import androidx.compose.foundation.gestures.detectVerticalDragGestures import androidx.compose.foundation.interaction.MutableInteractionSource import androidx.compose.foundation.layout.* @@ -80,13 +79,6 @@ fun BottomSheet( } ) } - .pointerInput(state) { - if (!state.isRunning && state.isCollapsed) { - detectTapGestures { - state.expand() - } - } - } .fillMaxSize() ) { if (!state.isCollapsed) { @@ -128,10 +120,6 @@ class BottomSheetState( val value by animatable.asState() - val isRunning by derivedStateOf { - animatable.isRunning - } - val isCollapsed by derivedStateOf { value == animatable.lowerBound }