am 8e0ca288: Window decor rect should not include the nav bar if hidden.

* commit '8e0ca288fe3f7bbb7d25751fa00be218b3940f18':
  Window decor rect should not include the nav bar if hidden.
This commit is contained in:
John Spurlock
2013-10-03 12:19:39 -07:00
committed by Android Git Automerger

View 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;