Skip to content

Commit 98439df

Browse files
manabu-nakamuradsn5ft
authored andcommittedSep 26, 2023
[Catalog] When bottom sheet is collapsed, back callback is enabled
Resolves #3592 Resolves #3573 GIT_ORIGIN_REV_ID=39e07227cdb20fcb1c31850c4d4aff40e7b65441 PiperOrigin-RevId: 568545360
1 parent 247240c commit 98439df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎catalog/java/io/material/catalog/bottomappbar/BottomAppBarMainDemoFragment.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ private void updateBackHandlingEnabled(int state) {
236236
switch (state) {
237237
case BottomSheetBehavior.STATE_EXPANDED:
238238
case BottomSheetBehavior.STATE_HALF_EXPANDED:
239+
case BottomSheetBehavior.STATE_COLLAPSED:
239240
bottomDrawerOnBackPressedCallback.setEnabled(true);
240241
break;
241-
case BottomSheetBehavior.STATE_COLLAPSED:
242242
case BottomSheetBehavior.STATE_HIDDEN:
243243
bottomDrawerOnBackPressedCallback.setEnabled(false);
244244
break;

0 commit comments

Comments
 (0)
Please sign in to comment.