mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Merge "Do not translate the AddDesktopButton on dismissing a TaskView" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
a00a837bd8
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user