Merge "Adjust ime insets for stack scroll layout" into tm-qpr-dev am: 85a09039af

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20541728

Change-Id: Id66e16cad08ae90822047f870176ae0d12524d32
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Matt Pietal
2022-11-22 18:43:03 +00:00
committed by Automerger Merge Worker

View File

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