Skip to content

Commit

Permalink
[Catalog] When bottom sheet is collapsed, back callback is enabled
Browse files Browse the repository at this point in the history
Resolves #3592
Resolves #3573

GIT_ORIGIN_REV_ID=39e07227cdb20fcb1c31850c4d4aff40e7b65441
PiperOrigin-RevId: 568545360
  • Loading branch information
manabu-nakamura authored and dsn5ft committed Sep 26, 2023
1 parent 247240c commit 98439df
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -236,9 +236,9 @@ private void updateBackHandlingEnabled(int state) {
switch (state) {
case BottomSheetBehavior.STATE_EXPANDED:
case BottomSheetBehavior.STATE_HALF_EXPANDED:
case BottomSheetBehavior.STATE_COLLAPSED:
bottomDrawerOnBackPressedCallback.setEnabled(true);
break;
case BottomSheetBehavior.STATE_COLLAPSED:
case BottomSheetBehavior.STATE_HIDDEN:
bottomDrawerOnBackPressedCallback.setEnabled(false);
break;
Expand Down

0 comments on commit 98439df

Please sign in to comment.