Skip to content

Commit

Permalink
Merge pull request #1695 from google/1.5stable
Browse files Browse the repository at this point in the history
Upgrade to Compose 1.5 stable
  • Loading branch information
bentrengrove authored Aug 20, 2023
2 parents 511ee9c + d1b2afd commit 6eb55b0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ systemProp.org.gradle.internal.http.socketTimeout=120000

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

POM_DESCRIPTION=Utilities for Jetpack Compose

Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]

compose = "1.5.0-rc01"
compose = "1.5.0"
composeCompiler = "1.5.1"
composeMaterial3 = "1.0.1"
composesnapshot = "-" # a single character = no snapshot
Expand All @@ -18,7 +18,7 @@ okhttp = "3.12.13"
coil = "1.3.2"

androidxtest = "1.4.0"
androidxnavigation = "2.7.0-alpha01"
androidxnavigation = "2.7.0"
androidxWindow = "1.0.0"

metalava = "0.3.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.google.accompanist.navigation.material

import android.annotation.SuppressLint
import androidx.activity.compose.BackHandler
import androidx.compose.animation.core.AnimationSpec
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.material.ExperimentalMaterialApi
Expand Down Expand Up @@ -219,6 +220,10 @@ public class BottomSheetNavigator(
}
}

BackHandler(retainedEntry != null) {
state.popWithTransition(retainedEntry!!, false)
}

SheetContentHost(
backStackEntry = retainedEntry,
sheetState = sheetState,
Expand Down

0 comments on commit 6eb55b0

Please sign in to comment.