From a78cf8fa6784777322934f05020db27fbb1f0e31 Mon Sep 17 00:00:00 2001 From: Hicham Boushaba Date: Wed, 4 Dec 2024 15:00:00 +0100 Subject: [PATCH] Suppress deprecation temporarily --- .../com/woocommerce/android/apifaker/ui/home/HomeScreen.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/apifaker/src/main/java/com/woocommerce/android/apifaker/ui/home/HomeScreen.kt b/libs/apifaker/src/main/java/com/woocommerce/android/apifaker/ui/home/HomeScreen.kt index da3a256b328..5bd64f90d6f 100644 --- a/libs/apifaker/src/main/java/com/woocommerce/android/apifaker/ui/home/HomeScreen.kt +++ b/libs/apifaker/src/main/java/com/woocommerce/android/apifaker/ui/home/HomeScreen.kt @@ -17,7 +17,6 @@ import androidx.compose.material.Card import androidx.compose.material.DismissDirection import androidx.compose.material.ExperimentalMaterialApi import androidx.compose.material.FloatingActionButton -import androidx.compose.material.FractionalThreshold import androidx.compose.material.Icon import androidx.compose.material.IconButton import androidx.compose.material.MaterialTheme @@ -145,7 +144,8 @@ private fun EndpointItem( state = dismissState, directions = setOf(DismissDirection.EndToStart), dismissThresholds = { - FractionalThreshold(0.3f) + @Suppress("DEPRECATION") + androidx.compose.material.FractionalThreshold(0.3f) }, modifier = modifier, background = { @@ -184,7 +184,7 @@ private fun EndpointItem( fontWeight = FontWeight.SemiBold ) val pathLine = endpoint.request.httpMethod?.let { "$it " }.orEmpty() + - endpoint.request.path + endpoint.request.path Text( text = pathLine, style = MaterialTheme.typography.body1