summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Adrian Roos <roosa@google.com> 2016-05-27 22:02:13 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-05-27 22:02:14 +0000
commit2c69d1ecae5efff06a29bec3d73f9654b8851972 (patch)
treed901bbb1f4d9d76c71670b5ece9f8370a7c31005
parent8d8718fc534325ff477036034eea058c179d1e04 (diff)
parentdd654eaf406ee668a040c8964c63389fe4af80ad (diff)
Merge "Fix IME and NavBar overlap with Direct Reply" into nyc-dev
-rw-r--r--services/core/java/com/android/server/policy/PhoneWindowManager.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java
index 0cafb93a060b..66bb24d02de4 100644
--- a/services/core/java/com/android/server/policy/PhoneWindowManager.java
+++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java
@@ -4360,6 +4360,11 @@ public class PhoneWindowManager implements WindowManagerPolicy {
pf.bottom = df.bottom = of.bottom = mUnrestrictedScreenTop + mUnrestrictedScreenHeight;
// ...with content insets above the nav bar
cf.bottom = vf.bottom = mStableBottom;
+ if (mStatusBar != null && mFocusedWindow == mStatusBar && canReceiveInput(mStatusBar)) {
+ // The status bar forces the navigation bar while it's visible. Make sure the IME
+ // avoids the navigation bar in that case.
+ pf.right = df.right = of.right = cf.right = vf.right = mStableRight;
+ }
// IM dock windows always go to the bottom of the screen.
attrs.gravity = Gravity.BOTTOM;
mDockLayer = win.getSurfaceLayer();