Loading quickstep/src/com/android/launcher3/taskbar/TaskbarManager.java +4 −2 Original line number Diff line number Diff line Loading @@ -648,7 +648,8 @@ public class TaskbarManager { } } private void addTaskbarRootViewToWindow() { @VisibleForTesting public void addTaskbarRootViewToWindow() { if (enableTaskbarNoRecreate() && !mAddedWindow && mTaskbarActivityContext != null) { mWindowManager.addView(mTaskbarRootLayout, mTaskbarActivityContext.getWindowLayoutParams()); Loading @@ -656,7 +657,8 @@ public class TaskbarManager { } } private void removeTaskbarRootViewFromWindow() { @VisibleForTesting public void removeTaskbarRootViewFromWindow() { if (enableTaskbarNoRecreate() && mAddedWindow) { mWindowManager.removeViewImmediate(mTaskbarRootLayout); mAddedWindow = false; Loading quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/rules/TaskbarUnitTestRule.kt +6 −2 Original line number Diff line number Diff line Loading @@ -119,14 +119,18 @@ class TaskbarUnitTestRule( try { // Replace Launcher Taskbar window with test instance. instrumentation.runOnMainSync { launcherTaskbarManager?.destroy() launcherTaskbarManager?.removeTaskbarRootViewFromWindow() taskbarManager.onUserUnlocked() // Required to complete initialization. } injectControllers() base.evaluate() } finally { instrumentation.runOnMainSync { taskbarManager.destroy() } // Revert Taskbar window. instrumentation.runOnMainSync { taskbarManager.destroy() launcherTaskbarManager?.addTaskbarRootViewToWindow() } } } } Loading Loading
quickstep/src/com/android/launcher3/taskbar/TaskbarManager.java +4 −2 Original line number Diff line number Diff line Loading @@ -648,7 +648,8 @@ public class TaskbarManager { } } private void addTaskbarRootViewToWindow() { @VisibleForTesting public void addTaskbarRootViewToWindow() { if (enableTaskbarNoRecreate() && !mAddedWindow && mTaskbarActivityContext != null) { mWindowManager.addView(mTaskbarRootLayout, mTaskbarActivityContext.getWindowLayoutParams()); Loading @@ -656,7 +657,8 @@ public class TaskbarManager { } } private void removeTaskbarRootViewFromWindow() { @VisibleForTesting public void removeTaskbarRootViewFromWindow() { if (enableTaskbarNoRecreate() && mAddedWindow) { mWindowManager.removeViewImmediate(mTaskbarRootLayout); mAddedWindow = false; Loading
quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/rules/TaskbarUnitTestRule.kt +6 −2 Original line number Diff line number Diff line Loading @@ -119,14 +119,18 @@ class TaskbarUnitTestRule( try { // Replace Launcher Taskbar window with test instance. instrumentation.runOnMainSync { launcherTaskbarManager?.destroy() launcherTaskbarManager?.removeTaskbarRootViewFromWindow() taskbarManager.onUserUnlocked() // Required to complete initialization. } injectControllers() base.evaluate() } finally { instrumentation.runOnMainSync { taskbarManager.destroy() } // Revert Taskbar window. instrumentation.runOnMainSync { taskbarManager.destroy() launcherTaskbarManager?.addTaskbarRootViewToWindow() } } } } Loading