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

This commit is contained in:
Alex Chau authored and Android (Google) Code Review committed 2021-09-22 13:34:12 +00:00
commit 8f990b94a2
4 files changed
+99 -4

No files matched your search

@@ -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();
}