Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Gladkov committed Jun 14, 2022
2 parents b070d7c + a7e4e67 commit 04d4952
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion buildSrc/buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
object Dependencies {

val odyssey = "1.0.0-beta07"
val odyssey = "1.0.0-beta11"
val odysseyPackage = "io.github.alexgladkov"

object DI {
Expand Down
4 changes: 2 additions & 2 deletions documentation/GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Add dependencies to gradle
```kotlin
named("commonMain") {
dependencies {
implementation("io.github.alexgladkov:odyssey-core:1.0.0-beta07") // For core classes
implementation("io.github.alexgladkov:odyssey-compose:1.0.0-beta07") // For compose extensions
implementation("io.github.alexgladkov:odyssey-core:1.0.0-beta11") // For core classes
implementation("io.github.alexgladkov:odyssey-compose:1.0.0-beta11") // For compose extensions
}
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ open class ModalController {
_backStack.clear()
}

fun isEmpty() = _backStack.isEmpty()
fun isEmpty() = _backStack.none { it.dialogState !is ModalDialogState.Close }

private fun redrawStack() {
val newStack = ArrayList<ModalBundle>().apply {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ internal fun BoxScope.BottomModalSheet(
bundle.backContent.invoke()
} else {
Screamer(backdropAlpha) {
if (bundle.closeOnBackdropClick) {
if (bundle.closeOnBackdropClick && bundle.dialogState !is ModalDialogState.Close) {
modalController.popBackStack()
}
}
Expand Down

0 comments on commit 04d4952

Please sign in to comment.