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:
Alexander Capehart 2023-08-16 17:32:26 -06:00
parent 70a5bab921
commit 449ec7cecd
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
2 changed files with 4 additions and 3 deletions

View file

@ -1752,7 +1752,10 @@ public class BackportBottomSheetBehavior<V extends View> extends CoordinatorLayo
Insets mandatoryGestureInsets =
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
// don't need peek height adjustments (Despite the fact that they still likely padding
// the view, just without clipping anything)

View file

@ -53,8 +53,6 @@ import com.google.android.material.internal.EdgeToEdgeUtils;
import com.google.android.material.motion.MaterialBackOrchestrator;
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.
*