am e2bd7be2: Merge "Ensure fitSystemWindows is called on the IME at least once." into klp-dev
* commit 'e2bd7be298448602568e56a8cb6c3d7de3c08955':
Ensure fitSystemWindows is called on the IME at least once.
diff --git a/core/java/com/android/internal/inputmethod/InputMethodRoot.java b/core/java/com/android/internal/inputmethod/InputMethodRoot.java
index 40a424b..eddea99 100644
--- a/core/java/com/android/internal/inputmethod/InputMethodRoot.java
+++ b/core/java/com/android/internal/inputmethod/InputMethodRoot.java
@@ -40,6 +40,12 @@
}
@Override
+ protected void onAttachedToWindow() {
+ super.onAttachedToWindow();
+ requestFitSystemWindows();
+ }
+
+ @Override
protected boolean fitSystemWindows(Rect insets) {
if (mNavigationGuard == null) {
mNavigationGuard = findViewById(com.android.internal.R.id.navigationGuard);