Merge "Prevent 3 button taskbar from showing on startup" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4d2d17baf7
@@ -184,6 +184,7 @@ public class NavigationBarController implements Callbacks,
|
||||
mNavMode = mNavigationModeController.addListener(this);
|
||||
mNavigationModeController.addListener(this);
|
||||
mTaskbarDelegate = new TaskbarDelegate(mOverviewProxyService);
|
||||
mIsTablet = isTablet(mContext.getResources().getConfiguration());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -297,6 +298,10 @@ public class NavigationBarController implements Callbacks,
|
||||
*/
|
||||
public void createNavigationBars(final boolean includeDefaultDisplay,
|
||||
RegisterStatusBarResult result) {
|
||||
if (updateNavbarForTaskbar()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Display[] displays = mDisplayManager.getDisplays();
|
||||
for (Display display : displays) {
|
||||
if (includeDefaultDisplay || display.getDisplayId() != DEFAULT_DISPLAY) {
|
||||
|
||||
Reference in New Issue
Block a user