Fix stupid bug breaking touch on devices without a nav bar.

Change-Id: Id76b7ab5625470fcc72541fb2fe8845cddba523f
This commit is contained in:
Dianne Hackborn
2011-10-17 15:01:27 -07:00
parent c047f60db2
commit 05f1cdc3e9

View File

@@ -1834,7 +1834,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
pf.right = df.right = vf.right = mDockRight;
pf.bottom = df.bottom = vf.bottom = mDockBottom;
final boolean navVisible = mNavigationBar != null && mNavigationBar.isVisibleLw() &&
final boolean navVisible = (mNavigationBar == null || mNavigationBar.isVisibleLw()) &&
(mLastSystemUiFlags&View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) == 0;
// When the navigation bar isn't visible, we put up a fake