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

This commit is contained in:
Jagrut Desai authored and Android (Google) Code Review committed 2025-03-26 08:59:05 -07:00
commit 7a6b2a39f6
5 files changed
+25 -6

No files matched your search

@@ -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()
@@ -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 =