Add flag to gate checking last task visibility on dismiss.
Bug: 404203362 Test: Manual. Open 9 apps, dismiss all bottom grid tasks, dismiss first top task, observe no jump. Flag: com.android.launcher3.enable_expressive_dismiss_task_motion Change-Id: Ie21d234f6a44c4566c4f73d4cc3c32f6a8375e6d
This commit is contained in:
@@ -3943,8 +3943,10 @@ public abstract class RecentsView<
|
||||
newClearAllShortTotalWidthTranslation = expectedFirstTaskStart - firstTaskStart;
|
||||
}
|
||||
}
|
||||
if (lastGridTaskView != null && (isTaskViewVisible(lastGridTaskView) || (
|
||||
isExpressiveDismiss && lastGridTaskView == dismissedTaskView))) {
|
||||
if (lastGridTaskView != null && (
|
||||
(!isExpressiveDismiss && lastGridTaskView.isVisibleToUser()) || (isExpressiveDismiss
|
||||
&& (isTaskViewVisible(lastGridTaskView)
|
||||
|| lastGridTaskView == dismissedTaskView)))) {
|
||||
// After dismissal, animate translation of the remaining tasks to fill any gap left
|
||||
// between the end of the grid and the clear all button. Only animate if the clear
|
||||
// all button is visible or would become visible after dismissal.
|
||||
|
||||
Reference in New Issue
Block a user