From 604b284349860203ca41eb7e0bc8ce4e3094ac9e Mon Sep 17 00:00:00 2001 From: Tiger Huang Date: Sun, 8 Nov 2020 19:04:16 +0800 Subject: 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 145f71182ab1c1e0be4f128683c97403c97d2696) --- core/java/android/inputmethodservice/InputMethodService.java | 1 - 1 file changed, 1 deletion(-) (limited to 'core/java/android/inputmethodservice/InputMethodService.java') diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java index 1e7815314718..1926ea230bb1 100644 --- a/core/java/android/inputmethodservice/InputMethodService.java +++ b/core/java/android/inputmethodservice/InputMethodService.java @@ -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 -- cgit v1.2.3