Merge "Revert "No NavigationBar layer in tablets"" into sc-v2-dev
This commit is contained in:
@@ -251,7 +251,8 @@ public class NavigationBarController implements Callbacks,
|
|||||||
|
|
||||||
/** @return {@code true} if taskbar is enabled, false otherwise */
|
/** @return {@code true} if taskbar is enabled, false otherwise */
|
||||||
private boolean initializeTaskbarIfNecessary() {
|
private boolean initializeTaskbarIfNecessary() {
|
||||||
if (mIsTablet) {
|
boolean isShowingTaskbar = mIsTablet && mNavMode == NAV_BAR_MODE_3BUTTON;
|
||||||
|
if (isShowingTaskbar) {
|
||||||
// Remove navigation bar when taskbar is showing, currently only for 3 button mode
|
// Remove navigation bar when taskbar is showing, currently only for 3 button mode
|
||||||
removeNavigationBar(mContext.getDisplayId());
|
removeNavigationBar(mContext.getDisplayId());
|
||||||
mCommandQueue.addCallback(mTaskbarDelegate);
|
mCommandQueue.addCallback(mTaskbarDelegate);
|
||||||
@@ -260,7 +261,7 @@ public class NavigationBarController implements Callbacks,
|
|||||||
mCommandQueue.removeCallback(mTaskbarDelegate);
|
mCommandQueue.removeCallback(mTaskbarDelegate);
|
||||||
mTaskbarDelegate.destroy();
|
mTaskbarDelegate.destroy();
|
||||||
}
|
}
|
||||||
return mIsTablet;
|
return isShowingTaskbar;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -331,7 +332,7 @@ public class NavigationBarController implements Callbacks,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mIsTablet) {
|
if (mIsTablet && mNavMode == NAV_BAR_MODE_3BUTTON) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user