am b0c900be: am b8818120: am e2bd7be2: Merge "Ensure fitSystemWindows is called on the IME at least once." into klp-dev

* commit 'b0c900becfec85919a10d5761da235b2153889c2':
  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);