ui: fix gap in landscape bottom sheet dialog
Apparently a second-order effect of the prior fix since the insetTop value would now shift the dialog downwards unneccessarily.
This commit is contained in:
parent
70a5bab921
commit
449ec7cecd
2 changed files with 4 additions and 3 deletions
|
|
@ -1752,7 +1752,10 @@ public class BackportBottomSheetBehavior<V extends View> extends CoordinatorLayo
|
||||||
Insets mandatoryGestureInsets =
|
Insets mandatoryGestureInsets =
|
||||||
insets.getInsets(WindowInsetsCompat.Type.mandatorySystemGestures());
|
insets.getInsets(WindowInsetsCompat.Type.mandatorySystemGestures());
|
||||||
|
|
||||||
insetTop = systemBarInsets.top;
|
// MODIFICATION: Fix second order change of edge-to-edge fix where dialogs will not
|
||||||
|
// use the nice-looking inset animation and instead blindly shift themselves downwards.
|
||||||
|
// insetTop = systemBarInsets.top;
|
||||||
|
|
||||||
// MODIFICATION: Fix awful assumption that clients handling edge-to-edge by themselves
|
// MODIFICATION: Fix awful assumption that clients handling edge-to-edge by themselves
|
||||||
// don't need peek height adjustments (Despite the fact that they still likely padding
|
// don't need peek height adjustments (Despite the fact that they still likely padding
|
||||||
// the view, just without clipping anything)
|
// the view, just without clipping anything)
|
||||||
|
|
|
||||||
|
|
@ -53,8 +53,6 @@ import com.google.android.material.internal.EdgeToEdgeUtils;
|
||||||
import com.google.android.material.motion.MaterialBackOrchestrator;
|
import com.google.android.material.motion.MaterialBackOrchestrator;
|
||||||
import com.google.android.material.shape.MaterialShapeDrawable;
|
import com.google.android.material.shape.MaterialShapeDrawable;
|
||||||
|
|
||||||
import org.checkerframework.common.subtyping.qual.Bottom;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for {@link android.app.Dialog}s styled as a bottom sheet.
|
* Base class for {@link android.app.Dialog}s styled as a bottom sheet.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue