Merge "Let IME receive insets ignoring z-order" into sc-dev am: f0cf73d84b

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

Change-Id: I4a77a14f3d351d2bc7702fd403697b2d905f4ce8
This commit is contained in:
Tiger Huang
2021-05-11 11:05:12 +00:00
committed by Automerger Merge Worker

View File

@@ -1329,6 +1329,7 @@ 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().receiveInsetsIgnoringZOrder = true;
// Automotive devices may request the navigation bar to be hidden when the IME shows up
// (controlled via config_automotiveHideNavBarForKeyboard) in order to maximize the visible