Skip to content

Commit 6eb55b0

Browse files
authored
Merge pull request #1695 from google/1.5stable
Upgrade to Compose 1.5 stable
2 parents 511ee9c + d1b2afd commit 6eb55b0

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ systemProp.org.gradle.internal.http.socketTimeout=120000
3333

3434
GROUP=com.google.accompanist
3535
# !! No longer need to update this manually when using a Compose SNAPSHOT
36-
VERSION_NAME=0.31.7-SNAPSHOT
36+
VERSION_NAME=0.32.0
3737

3838
POM_DESCRIPTION=Utilities for Jetpack Compose
3939

gradle/libs.versions.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22

3-
compose = "1.5.0-rc01"
3+
compose = "1.5.0"
44
composeCompiler = "1.5.1"
55
composeMaterial3 = "1.0.1"
66
composesnapshot = "-" # a single character = no snapshot
@@ -18,7 +18,7 @@ okhttp = "3.12.13"
1818
coil = "1.3.2"
1919

2020
androidxtest = "1.4.0"
21-
androidxnavigation = "2.7.0-alpha01"
21+
androidxnavigation = "2.7.0"
2222
androidxWindow = "1.0.0"
2323

2424
metalava = "0.3.2"

navigation-material/src/main/java/com/google/accompanist/navigation/material/BottomSheetNavigator.kt

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package com.google.accompanist.navigation.material
1818

1919
import android.annotation.SuppressLint
20+
import androidx.activity.compose.BackHandler
2021
import androidx.compose.animation.core.AnimationSpec
2122
import androidx.compose.foundation.layout.ColumnScope
2223
import androidx.compose.material.ExperimentalMaterialApi
@@ -219,6 +220,10 @@ public class BottomSheetNavigator(
219220
}
220221
}
221222

223+
BackHandler(retainedEntry != null) {
224+
state.popWithTransition(retainedEntry!!, false)
225+
}
226+
222227
SheetContentHost(
223228
backStackEntry = retainedEntry,
224229
sheetState = sheetState,

0 commit comments

Comments
 (0)