From c966dd4ef6c61d958d64c0979f9cfe2c9e5f9205 Mon Sep 17 00:00:00 2001 From: Andy Wickham Date: Thu, 20 Mar 2025 10:24:15 +0000 Subject: Do not defer All Apps updates with async inflation. With enableWorkspaceInflation, onCompleteSignal can be executed minutes after the initial bind, leaving All Apps in a stale empty state. And the async approach removes the need for this deferred rendering anyway. Bug: 393406722 Test: Wipe, add personal account in SUW, add work account. Flag: EXEMPT bugfix Change-Id: I0ad8d5c26f4b982403aead5cbd190482fcc42dfe --- src/com/android/launcher3/ModelCallbacks.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/launcher3/ModelCallbacks.kt b/src/com/android/launcher3/ModelCallbacks.kt index 32b47d0b22..f38dc418a0 100644 --- a/src/com/android/launcher3/ModelCallbacks.kt +++ b/src/com/android/launcher3/ModelCallbacks.kt @@ -95,7 +95,7 @@ class ModelCallbacks(private var launcher: Launcher) : BgDataModel.Callbacks { synchronouslyBoundPages = boundPages pagesToBindSynchronously = LIntSet() clearPendingBinds() - if (!launcher.isInState(LauncherState.ALL_APPS)) { + if (!launcher.isInState(LauncherState.ALL_APPS) && !Flags.enableWorkspaceInflation()) { launcher.appsView.appsStore.enableDeferUpdates(AllAppsStore.DEFER_UPDATES_NEXT_DRAW) pendingTasks.add { launcher.appsView.appsStore.disableDeferUpdates( -- cgit v1.2.3-59-g8ed1b