From d6739fb73ed679b01e62d17aa38c6ca062e59e9e Mon Sep 17 00:00:00 2001 From: Stojan Anastasov Date: Sun, 25 Feb 2024 13:35:45 +0100 Subject: [PATCH 1/2] Update deprecated icon --- .../superheroes/superherodetails/SuperheroDetailsScreen.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/github/lordraydenmk/superheroesapp/superheroes/superherodetails/SuperheroDetailsScreen.kt b/app/src/main/java/io/github/lordraydenmk/superheroesapp/superheroes/superherodetails/SuperheroDetailsScreen.kt index 8b25e561..4d8f29ed 100644 --- a/app/src/main/java/io/github/lordraydenmk/superheroesapp/superheroes/superherodetails/SuperheroDetailsScreen.kt +++ b/app/src/main/java/io/github/lordraydenmk/superheroesapp/superheroes/superherodetails/SuperheroDetailsScreen.kt @@ -10,7 +10,7 @@ import androidx.compose.material.IconButton import androidx.compose.material.Text import androidx.compose.material.TopAppBar import androidx.compose.material.icons.Icons -import androidx.compose.material.icons.filled.ArrowBack +import androidx.compose.material.icons.automirrored.filled.ArrowBack import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.ui.Alignment @@ -60,7 +60,7 @@ private fun SuperheroAppBar( title = { Text(text = state.title) }, navigationIcon = { IconButton(onClick = { actions.trySend(Up).getOrThrow() }) { - Icon(Icons.Filled.ArrowBack, contentDescription = "") + Icon(Icons.AutoMirrored.Filled.ArrowBack, contentDescription = "") } } ) From 592a4648ef4be4b49c8f85d46663e384ce2acc9f Mon Sep 17 00:00:00 2001 From: Stojan Anastasov Date: Sun, 25 Feb 2024 13:36:52 +0100 Subject: [PATCH 2/2] Move buildConfig enabling to build.gradle --- app/build.gradle | 1 + gradle.properties | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index eaed1662..ee91af52 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -37,6 +37,7 @@ android { buildFeatures { compose true + buildConfig true } composeOptions { diff --git a/gradle.properties b/gradle.properties index f9617990..b17c05d6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,7 +19,5 @@ android.useAndroidX=true android.enableJetifier=false # Kotlin code style for this project: "official" or "obsolete": kotlin.code.style=official -android.defaults.buildfeatures.buildconfig=true - # try the K2 compiler https://android-developers.googleblog.com/2023/07/try-k2-compiler-in-your-android-projects.html kotlin.experimental.tryK2=true