OSDN Git Service

Window decor rect should not include the nav bar if hidden.
authorJohn Spurlock <jspurlock@google.com>
Thu, 3 Oct 2013 15:46:06 +0000 (11:46 -0400)
committerJohn Spurlock <jspurlock@google.com>
Thu, 3 Oct 2013 15:46:06 +0000 (11:46 -0400)
Bug:11059726
Change-Id: Ia445af030ac34da8e361d909978caa3f2793cfda

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

index 54a5107..3232a1e 100644 (file)
@@ -3007,7 +3007,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                     // Ensure policy decor includes status bar
                     dcf.top = mStableTop;
                 }
-                if ((sysUiFl & View.SYSTEM_UI_FLAG_TRANSPARENT_NAVIGATION) == 0) {
+                if ((sysUiFl & View.SYSTEM_UI_FLAG_TRANSPARENT_NAVIGATION) == 0
+                        && (sysUiFl & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) == 0) {
                     // Ensure policy decor includes navigation bar
                     dcf.bottom = mStableBottom;
                     dcf.right = mStableRight;