OSDN Git Service

Force the nav bar visible when an IME window is visible.
authorJohn Spurlock <jspurlock@google.com>
Thu, 5 Sep 2013 13:37:56 +0000 (09:37 -0400)
committerJohn Spurlock <jspurlock@google.com>
Thu, 5 Sep 2013 13:37:56 +0000 (09:37 -0400)
Bug:9499956
Change-Id: I1ed895c6283476440b6c47e1764b6b0fe2aa949a

policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

index c58ed6f..cd8da69 100644 (file)
@@ -3334,7 +3334,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
         if (DEBUG_LAYOUT) Slog.i(TAG, "Win " + win + ": isVisibleOrBehindKeyguardLw="
                 + win.isVisibleOrBehindKeyguardLw());
         if (mTopFullscreenOpaqueWindowState == null && (win.getAttrs().privateFlags
-                &WindowManager.LayoutParams.PRIVATE_FLAG_FORCE_SHOW_NAV_BAR) != 0) {
+                &WindowManager.LayoutParams.PRIVATE_FLAG_FORCE_SHOW_NAV_BAR) != 0
+                || (win.isVisibleLw() && attrs.type == TYPE_INPUT_METHOD)) {
             if (mForcingShowNavBarLayer < 0) {
                 mForcingShowNavBar = true;
                 mForcingShowNavBarLayer = win.getSurfaceLayer();