From 831fe28f007a2eb016f3f951dad1f25241df3e7e Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sat, 4 Nov 2023 17:11:13 +0100 Subject: [PATCH] Disable descriptions for now --- app/shared/src/commonMain/kotlin/components/SearchBar.kt | 2 -- .../src/commonMain/kotlin/components/SoundContainer.kt | 5 +++-- build.gradle.kts | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/shared/src/commonMain/kotlin/components/SearchBar.kt b/app/shared/src/commonMain/kotlin/components/SearchBar.kt index c4cc76e..1e60878 100644 --- a/app/shared/src/commonMain/kotlin/components/SearchBar.kt +++ b/app/shared/src/commonMain/kotlin/components/SearchBar.kt @@ -44,10 +44,8 @@ import kotlin.time.Duration.Companion.milliseconds typealias SoundUpdater = (List) -> Unit -@OptIn(ExperimentalComposeUiApi::class) private val protectedKeys = listOf(Key.Enter, Key.DirectionUp, Key.DirectionDown) -@OptIn(ExperimentalComposeUiApi::class, ExperimentalAnimationApi::class) @Composable fun SearchBarScope(updateSounds: SoundUpdater, content: @Composable () -> Unit) { var onlineMine by remember { mutableStateOf(false) } diff --git a/app/shared/src/commonMain/kotlin/components/SoundContainer.kt b/app/shared/src/commonMain/kotlin/components/SoundContainer.kt index d031d6f..057d087 100644 --- a/app/shared/src/commonMain/kotlin/components/SoundContainer.kt +++ b/app/shared/src/commonMain/kotlin/components/SoundContainer.kt @@ -176,7 +176,8 @@ fun SoundCard( } } } - if (description != null && hovered && !playing) { + // TODO: find better way to display descriptions +/* if (description != null && hovered && !playing) { Box( modifier = Modifier .clip(RoundedCornerShape(10.dp)) @@ -187,5 +188,5 @@ fun SoundCard( ) { Text(description, color = ColorScheme.textColor) } - } + }*/ } diff --git a/build.gradle.kts b/build.gradle.kts index a7483d8..9a73643 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,7 +7,7 @@ plugins { allprojects { group = "dev.schlaubi.tonbrett" - version = "1.16.11" + version = "1.16.12" repositories { mavenCentral()