From ff84d2bc666268803a572617139f0ac2787af142 Mon Sep 17 00:00:00 2001 From: Nicolo' Mazzucato Date: Thu, 24 Mar 2022 11:31:51 +0000 Subject: [PATCH] Tune fold animation on top of apps On top of apps, the fold animation is triggered only after a threshold. On Launcher, there is not threshold. In this way, we don't show fold animation while apps might be handling table top/half_folded state. + timeout to finish the animation made shorter Test: atest DeviceFoldStateProviderTest Bug: 225185239 Change-Id: I5adf82e853af9a5dee5af41a853abb84c9926ccd --- quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java b/quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java index 6f0f993ed4..fe24c4bb85 100644 --- a/quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java +++ b/quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java @@ -33,6 +33,7 @@ import static com.android.systemui.shared.system.ActivityManagerWrapper.CLOSE_SY import android.animation.AnimatorSet; import android.animation.ValueAnimator; +import android.app.ActivityManager; import android.app.ActivityOptions; import android.content.Context; import android.content.Intent; @@ -325,6 +326,7 @@ public abstract class BaseQuickstepLauncher extends Launcher { config, ProxyScreenStatusProvider.INSTANCE, getSystemService(DeviceStateManager.class), + getSystemService(ActivityManager.class), getSystemService(SensorManager.class), getMainThreadHandler(), getMainExecutor(),