From 51433debcd25541f29614f0ef141e4f8e084ecd4 Mon Sep 17 00:00:00 2001 From: Schneider Victor-tulias Date: Wed, 21 Aug 2024 14:29:07 -0400 Subject: [PATCH] Polish transition between desktop mode and overview Fixing desktop task in place along the x-axis and animating its background's alpha to more smoothly handle the transition. Flag: com.android.launcher3.enable_desktop_task_alpha_animation Fixes: 320307666 Test: swiped to and from desktop mode and overview Change-Id: I38d62d0c966733f96c2f4d4ecfa4a9418039fd48 --- aconfig/launcher.aconfig | 10 ++++ .../android/quickstep/AbsSwipeUpHandler.java | 18 +++++-- .../quickstep/BaseActivityInterface.java | 31 +++++++++--- .../util/RecentsAtomicAnimationFactory.java | 9 +++- .../android/quickstep/views/RecentsView.java | 49 ++++++++++++++++--- .../com/android/quickstep/views/TaskView.kt | 22 +++++++-- 6 files changed, 115 insertions(+), 24 deletions(-) diff --git a/aconfig/launcher.aconfig b/aconfig/launcher.aconfig index be8ebbbdfc..dbcf49cd92 100644 --- a/aconfig/launcher.aconfig +++ b/aconfig/launcher.aconfig @@ -339,3 +339,13 @@ flag { description: "Change fast scroller to a lettered list" bug: "358673724" } + +flag { + name: "enable_desktop_task_alpha_animation" + namespace: "launcher" + description: "Enables the animation of the desktop task's background view" + bug: "320307666" + metadata { + purpose: PURPOSE_BUGFIX + } +} diff --git a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java index 5392b70703..3d944422cf 100644 --- a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +++ b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java @@ -734,11 +734,18 @@ public abstract class AbsSwipeUpHandler