summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author Andy Wickham <awickham@google.com> 2025-03-20 10:24:15 +0000
committer Andy Wickham <awickham@google.com> 2025-03-21 03:56:41 +0000
commitc966dd4ef6c61d958d64c0979f9cfe2c9e5f9205 (patch)
tree6309ed6ca7653b0374dedfa98e597aca75ae6b10 /src
parenta97f179909f2ad50b733084735f2ac581d5cfba3 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/ModelCallbacks.kt2
1 files changed, 1 insertions, 1 deletions
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(