Merge "Prevent 3 button taskbar from showing on startup" into sc-dev am: 4d2d17baf7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14491502 Change-Id: I91917b4a8a3c1bd8efe105363ac8d3219b8c81fe
This commit is contained in:
@@ -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