Browse Source

Maps back button override

Carles Sentis 11 months ago
parent
commit
8a83dcf0d4

+ 2 - 2
app/build.gradle.kts

@@ -14,8 +14,8 @@ android {
         applicationId = "com.arklan.weather"
         minSdk = ConfigData.minSdk
         targetSdk = ConfigData.targetSdk
-        versionCode = 10
-        versionName = "2.0"
+        versionCode = 12
+        versionName = "2.2"
 
         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
         vectorDrawables {

BIN
app/release/app-release.aab


+ 1 - 1
feature/geocoding/src/main/java/com/codeskraps/feature/geocoding/presentation/components/GeocodingScreen.kt

@@ -77,7 +77,7 @@ fun GeocodingScreen(
             }
         }
     }
-//Icons.AutoMirrored.Default.ArrowBack,
+
     Scaffold(
         topBar = {
             TopAppBar(

+ 5 - 0
feature/maps/src/main/java/com/codeskraps/maps/presentation/components/MapScreen.kt

@@ -2,6 +2,7 @@ package com.codeskraps.maps.presentation.components
 
 import android.content.res.Resources
 import android.graphics.Bitmap
+import androidx.activity.compose.BackHandler
 import androidx.annotation.ColorInt
 import androidx.annotation.DrawableRes
 import androidx.compose.foundation.layout.Box
@@ -66,6 +67,10 @@ fun MapScreen(
         onPauseOrDispose {}
     }
 
+    BackHandler {
+        navRoute(Screen.Weather.route)
+    }
+
     Scaffold(
         topBar = {
             TopAppBar(