diff options
author | Andy Wickham <awickham@google.com> | 2019-09-24 12:51:36 -0700 |
---|---|---|
committer | Andy Wickham <awickham@google.com> | 2019-10-14 16:04:33 -0700 |
commit | fb578e4528855c8a82f0478b1eab9393c4711821 (patch) | |
tree | 62f839979df55a001b8bd71c5508f6d2f1c5bb01 /quickstep/recents_ui_overrides | |
parent | 4a4755fc70beae859425be789be0eb9342377a9f (diff) | |
download | android_packages_apps_Trebuchet-fb578e4528855c8a82f0478b1eab9393c4711821.tar.gz android_packages_apps_Trebuchet-fb578e4528855c8a82f0478b1eab9393c4711821.tar.bz2 android_packages_apps_Trebuchet-fb578e4528855c8a82f0478b1eab9393c4711821.zip |
Fades out Assistant when entering Overview.
This makes the transition smoother, since
the Assistant goes away at the end of it.
Note this only applies to the transition
while an app other than Launcher is live.
Before: https://drive.google.com/open?id=18SOWTtTUzt19TReAYnofQLIShJ2I-odP
After: https://drive.google.com/open?id=1hqsikXSlCnSvNg0ZQYHxP-OIbS5yt9aW
Bug: 136282913
Change-Id: Ia53c2407c82725c776f27b0d6e80a34554b4a303
Merged-In: Ia53c2407c82725c776f27b0d6e80a34554b4a303
Tested: Manually
Diffstat (limited to 'quickstep/recents_ui_overrides')
-rw-r--r-- | quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java index cae273a16..fa3be9c12 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java @@ -37,6 +37,7 @@ import com.android.launcher3.DeviceProfile; import com.android.launcher3.LauncherState; import com.android.launcher3.R; import com.android.launcher3.Utilities; +import com.android.launcher3.anim.Interpolators; import com.android.launcher3.views.BaseDragLayer; import com.android.quickstep.RecentsModel; import com.android.quickstep.views.RecentsView; @@ -50,8 +51,6 @@ import com.android.systemui.shared.system.SyncRtSurfaceTransactionApplierCompat. import com.android.systemui.shared.system.TransactionCompat; import com.android.systemui.shared.system.WindowManagerWrapper; -import java.util.function.BiFunction; - /** * Utility class to handle window clip animation */ @@ -213,6 +212,11 @@ public class ClipAnimationHelper { } mCurrentCornerRadius = cornerRadius; } + // Fade out Assistant overlay. + if (app.activityType == RemoteAnimationTargetCompat.ACTIVITY_TYPE_ASSISTANT + && app.isNotInRecents) { + alpha = 1 - Interpolators.DEACCEL_2_5.getInterpolation(progress); + } } else if (targetSet.hasRecents) { // If home has a different target then recents, reverse anim the // home target. |