Do let IME fit invisible insets
Otherwise, the fullscreen IME won't cover the entire display while
there is a hidden system bar.
Fix: 168657591
Test: 1. Steps in the bug.
2. Play WindowInsetsTests with combinations of system bar
visibilities, navigation mode, screen orientation, and display
cutout.
Merged-in: I6e7d665c55839dfbb14c8d2e5365537416f5f6c6
Change-Id: I6e7d665c55839dfbb14c8d2e5365537416f5f6c6
(cherry picked from commit 145f71182a)
This commit is contained in:
@@ -1215,7 +1215,6 @@ public class InputMethodService extends AbstractInputMethodService {
|
||||
WindowManager.LayoutParams.TYPE_INPUT_METHOD, Gravity.BOTTOM, false);
|
||||
mWindow.getWindow().getAttributes().setFitInsetsTypes(statusBars() | navigationBars());
|
||||
mWindow.getWindow().getAttributes().setFitInsetsSides(Side.all() & ~Side.BOTTOM);
|
||||
mWindow.getWindow().getAttributes().setFitInsetsIgnoringVisibility(true);
|
||||
|
||||
// IME layout should always be inset by navigation bar, no matter its current visibility,
|
||||
// unless automotive requests it. Automotive devices may request the navigation bar to be
|
||||
|
||||
Reference in New Issue
Block a user