Просмотр исходного кода

Set isHideable to true again when non-cancelable BottomSheet dialog is dismissed.

Aidan Follestad 5 лет назад
Родитель
Сommit
2112872761

+ 4 - 1
bottomsheets/src/main/java/com/afollestad/materialdialogs/bottomsheets/BottomSheet.kt

@@ -228,7 +228,10 @@ class BottomSheet(
         sheetBehavior != null &&
         sheetBehavior.state != STATE_HIDDEN
     ) {
-      sheetBehavior.state = STATE_HIDDEN
+      sheetBehavior.apply {
+        isHideable = true
+        state = STATE_HIDDEN
+      }
       hideButtons()
       return true
     }