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
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user