Merge "Do not translate the AddDesktopButton on dismissing a TaskView" into main

This commit is contained in:
Treehugger Robot
2025-02-18 09:15:44 -08:00
committed by Android (Google) Code Review

View File

@@ -4342,6 +4342,11 @@ public abstract class RecentsView<
PendingAnimation pendingAnimation,
SplitAnimationTimings splitTimings,
int index) {
// No need to translate the AddDesktopButton on dismissing a TaskView, which should be
// always at the right most position, even when dismissing the last TaskView.
if (view instanceof AddDesktopButton) {
return;
}
FloatProperty translationProperty = view instanceof TaskView
? ((TaskView) view).getPrimaryDismissTranslationProperty()
: getPagedOrientationHandler().getPrimaryViewTranslate();