Skip to content

Commit

Permalink
Merge "FW : Screen Sizing for TabUI when HiddenNav Enabled" into jb-mr1
Browse files Browse the repository at this point in the history
  • Loading branch information
sethyx authored and Gerrit Code Review committed Apr 15, 2013
2 parents a8496a0 + ab16e75 commit e2c5042
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,6 @@ public void setInitialDisplaySize(Display display, int width, int height, int de
} else {
mStockUIMode = 2; // Phablet Mode
} // Tablet Mode will be mode ==1 but no devices default to Tablet mode since 4.2

mUserUIMode = Settings.System.getInt(mContext.getContentResolver(),
Settings.System.USER_UI_MODE,mStockUIMode);
switch (mUserUIMode) {
Expand All @@ -1183,6 +1182,7 @@ public void setInitialDisplaySize(Display display, int width, int height, int de
break;
case 1 :
// "tablet" UI with a single combined status & navigation bar
mNavBarAutoHide = false; // TabUI, No AutoHide for you!
mHasSystemNavBar = true;
mNavigationBarCanMove = false;
break;
Expand Down Expand Up @@ -1365,9 +1365,9 @@ public void updateSettings() {
Settings.System.USER_UI_MODE,mStockUIMode)) {
resetScreenHelper();
}
if (NavHide != mNavBarAutoHide) {
mNavBarAutoHide = NavHide;
resetScreenHelper();
if (NavHide != mNavBarAutoHide && mUserUIMode != 1) {
mNavBarAutoHide = NavHide;
resetScreenHelper();
}
}

Expand Down

0 comments on commit e2c5042

Please sign in to comment.