playback: fix playback sheet hiding on pre-U back
Caused by a missed check.
This commit is contained in:
+3
-2
@@ -1633,12 +1633,13 @@ public class BackportBottomSheetBehavior<V extends View> extends CoordinatorLayo
|
||||
return;
|
||||
}
|
||||
BackEventCompat backEvent = bottomContainerBackHelper.onHandleBackInvoked();
|
||||
boolean canActuallyHide = hideable && isHideableWhenDragging();
|
||||
if (backEvent == null || VERSION.SDK_INT < VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
||||
// If using traditional button system nav or if pre-U, just hide or collapse the bottom sheet.
|
||||
setState(hideable ? STATE_HIDDEN : STATE_COLLAPSED);
|
||||
setState(canActuallyHide ? STATE_HIDDEN : STATE_COLLAPSED);
|
||||
return;
|
||||
}
|
||||
if (hideable && isHideableWhenDragging()) {
|
||||
if (canActuallyHide) {
|
||||
bottomContainerBackHelper.finishBackProgressNotPersistent(
|
||||
backEvent,
|
||||
new AnimatorListenerAdapter() {
|
||||
|
||||
Reference in New Issue
Block a user