Merge "Adjust ime insets for stack scroll layout" into tm-qpr-dev

This commit is contained in:
Matt Pietal
2022-11-22 18:12:27 +00:00
committed by Android (Google) Code Review

View File

@@ -1809,7 +1809,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
@Override
@ShadeViewRefactor(RefactorComponent.COORDINATOR)
public WindowInsets onApplyWindowInsets(WindowInsets insets) {
mBottomInset = insets.getSystemWindowInsetBottom();
mBottomInset = insets.getSystemWindowInsetBottom()
+ insets.getInsets(WindowInsets.Type.ime()).bottom;
mWaterfallTopInset = 0;
final DisplayCutout cutout = insets.getDisplayCutout();