Merge "Keep insets stable when taskbar is destroyed/recreated" into sc-v2-dev

This commit is contained in:
Alex Chau
2021-09-22 13:34:12 +00:00
committed by Android (Google) Code Review
4 changed files with 99 additions and 4 deletions
@@ -426,8 +426,7 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
@Override
public WindowInsets dispatchApplyWindowInsets(WindowInsets insets) {
if (Utilities.ATLEAST_Q) {
mNavBarScrimHeight = insets.getTappableElementInsets().bottom
- mLauncher.getDeviceProfile().nonOverlappingTaskbarInset;
mNavBarScrimHeight = insets.getTappableElementInsets().bottom;
} else {
mNavBarScrimHeight = insets.getStableInsetBottom();
}