Skip to content

Commit

Permalink
Maps back button override
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskraps committed Jan 29, 2024
1 parent b334a9a commit 8a83dcf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Binary file modified app/release/app-release.aab
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ fun GeocodingScreen(
}
}
}
//Icons.AutoMirrored.Default.ArrowBack,

Scaffold(
topBar = {
TopAppBar(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -66,6 +67,10 @@ fun MapScreen(
onPauseOrDispose {}
}

BackHandler {
navRoute(Screen.Weather.route)
}

Scaffold(
topBar = {
TopAppBar(
Expand Down

0 comments on commit 8a83dcf

Please sign in to comment.