Revert "Revert "No NavigationBar layer in tablets""
This reverts commit a7a5ad7b78.
Reason for revert: Reapply the change with additional changes to fix tapl tests
Bug: 191660313
Test: TaplTestsLauncher3
Change-Id: I67f0c6780cb7b531b8d88824786e8d7875256b7e
This commit is contained in:
@@ -251,8 +251,7 @@ public class NavigationBarController implements Callbacks,
|
||||
|
||||
/** @return {@code true} if taskbar is enabled, false otherwise */
|
||||
private boolean initializeTaskbarIfNecessary() {
|
||||
boolean isShowingTaskbar = mIsTablet && mNavMode == NAV_BAR_MODE_3BUTTON;
|
||||
if (isShowingTaskbar) {
|
||||
if (mIsTablet) {
|
||||
// Remove navigation bar when taskbar is showing, currently only for 3 button mode
|
||||
removeNavigationBar(mContext.getDisplayId());
|
||||
mCommandQueue.addCallback(mTaskbarDelegate);
|
||||
@@ -261,7 +260,7 @@ public class NavigationBarController implements Callbacks,
|
||||
mCommandQueue.removeCallback(mTaskbarDelegate);
|
||||
mTaskbarDelegate.destroy();
|
||||
}
|
||||
return isShowingTaskbar;
|
||||
return mIsTablet;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -332,7 +331,7 @@ public class NavigationBarController implements Callbacks,
|
||||
return;
|
||||
}
|
||||
|
||||
if (mIsTablet && mNavMode == NAV_BAR_MODE_3BUTTON) {
|
||||
if (mIsTablet) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user