Run Taskbar controller tests on VirtualDisplay.
Flag: TEST_ONLY Test: go/testedequals Bug: 369641781 Change-Id: Id53f420e7edc1779da9eb7647644ffffb74e67b3
This commit is contained in:
1 parent
46b20441e4
commit
066f5adcf6
3 files changed
+94
-11
No files matched your search
@@ -16,7 +16,6 @@
|
||||
package com.android.launcher3.taskbar;
|
||||
|
||||
import static android.content.Context.RECEIVER_NOT_EXPORTED;
|
||||
import static android.view.Display.DEFAULT_DISPLAY;
|
||||
import static android.view.WindowManager.LayoutParams.TYPE_NAVIGATION_BAR;
|
||||
import static android.view.WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL;
|
||||
|
||||
@@ -220,7 +219,7 @@ public class TaskbarManager {
|
||||
TaskbarNavButtonCallbacks navCallbacks,
|
||||
@NonNull DesktopVisibilityController desktopVisibilityController) {
|
||||
Display display =
|
||||
context.getSystemService(DisplayManager.class).getDisplay(DEFAULT_DISPLAY);
|
||||
context.getSystemService(DisplayManager.class).getDisplay(context.getDisplayId());
|
||||
mContext = context.createWindowContext(display,
|
||||
ENABLE_TASKBAR_NAVBAR_UNIFICATION ? TYPE_NAVIGATION_BAR : TYPE_NAVIGATION_BAR_PANEL,
|
||||
null);
|
||||
@@ -672,11 +671,6 @@ public class TaskbarManager {
|
||||
@VisibleForTesting
|
||||
public void setSuspended(boolean isSuspended) {
|
||||
mIsSuspended = isSuspended;
|
||||
if (mIsSuspended) {
|
||||
removeTaskbarRootViewFromWindow();
|
||||
} else {
|
||||
addTaskbarRootViewToWindow();
|
||||
}
|
||||
}
|
||||
|
||||
private void addTaskbarRootViewToWindow() {
|
||||
|
||||
Reference in new issue
Block a user