Merge "Fix Taskbar Flicker with Recents or Running Apps Present" into main

This commit is contained in:
Jagrut Desai
2025-03-26 08:59:05 -07:00
committed by Android (Google) Code Review
5 changed files with 25 additions and 6 deletions

View File

@@ -129,7 +129,10 @@ class TaskbarOverflowTest {
if (!recentAppsController.canShowRunningApps) {
recentAppsController.onDestroy()
recentAppsController.canShowRunningApps = true
recentAppsController.init(taskbarUnitTestRule.activityContext.controllers)
recentAppsController.init(
taskbarUnitTestRule.activityContext.controllers,
emptyList(),
)
}
currentControllerInitCallback.invoke()

View File

@@ -118,7 +118,7 @@ class TaskbarRecentAppsControllerTest : TaskbarBaseTestCase() {
recentAppsController = TaskbarRecentAppsController(mockContext, mockRecentsModel)
recentAppsController.canShowRunningApps = canShowRunningAndRecentAppsAtInit
recentAppsController.canShowRecentApps = canShowRunningAndRecentAppsAtInit
recentAppsController.init(taskbarControllers)
recentAppsController.init(taskbarControllers, emptyList())
taskbarControllers.onPostInit()
recentTasksChangedListener =