From abd2716fea8d29abb71fda56990aa91f6595dccb Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Wed, 9 Apr 2025 17:38:34 +0100 Subject: [PATCH] Reload visible task data when transitioning to Overview - When onPrepareGestureEndAnimation is called, we already know the end target is Overview, loading thumbnail at this point ensure thumbanil is loaded throughout the transition Fix: 407525135 Flag: com.android.launcher3.enable_grid_only_overview Test: Home/app to Overview with gesture/3button Change-Id: Ie91d3989654ff17df94704275523ca097f786293 --- .../src/com/android/quickstep/views/RecentsViewUtils.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/quickstep/src/com/android/quickstep/views/RecentsViewUtils.kt b/quickstep/src/com/android/quickstep/views/RecentsViewUtils.kt index 1207b02ec4..33963b817b 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsViewUtils.kt +++ b/quickstep/src/com/android/quickstep/views/RecentsViewUtils.kt @@ -52,6 +52,7 @@ import com.android.quickstep.views.RecentsView.RECENTS_GRID_PROGRESS import com.android.quickstep.views.RecentsView.RUNNING_TASK_ATTACH_ALPHA import com.android.quickstep.views.RecentsView.TAG import com.android.quickstep.views.RecentsView.TASK_THUMBNAIL_SPLASH_ALPHA +import com.android.quickstep.views.TaskView.Companion.FLAG_UPDATE_ALL import com.android.systemui.shared.recents.model.Task import com.android.systemui.shared.recents.model.ThumbnailData import com.android.wm.shell.shared.GroupedTaskInfo @@ -669,6 +670,11 @@ class RecentsViewUtils(private val recentsView: RecentsView<*, *>) : DesktopVisi if (enableLargeDesktopWindowingTile()) { animatorSet.play(ObjectAnimator.ofFloat(this, DESKTOP_CAROUSEL_DETACH_PROGRESS, 0f)) } + + if (enableGridOnlyOverview()) { + // Reload visible tasks according to new [mCurrentGestureEndTarget] value. + loadVisibleTaskData(FLAG_UPDATE_ALL) + } } }