Adjust ime insets for stack scroll layout

This ensures that inline replies are properly displayed with IME, now
that the window will not automatically resize due to the removal of
the LayoutParams.SOFT_INPUT_ADJUST_RESIZE flag.

Test: atest
InputMethodStressTest: com.android.inputmethod.stresstest.NotificationTest
Fixes: 259788831
Change-Id: I3d86786d19f8f1de8da7f7d3f5f0a129919f2a4d
This commit is contained in:
Matt Pietal
2022-11-22 14:32:07 +00:00
parent e16da5a4e0
commit 8c51aa8508

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