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
This commit is contained in:
Nicolo' Mazzucato
2022-03-24 11:31:51 +00:00
parent 53ad207008
commit ff84d2bc66
@@ -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(),