mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Add FLAG_DONT_ANIMATE_OVERVIEW to AnimatorSetBuilder
This allows us to specify when a second animation will handle the overview animation, so it doesn't conflict with existing state transitions. Bug: 125362112 Change-Id: I497c02924862bfba558c107bee3c88a9f40ec0f1
This commit is contained in:
@@ -19,6 +19,7 @@ package com.android.launcher3.uioverrides;
|
||||
import static com.android.launcher3.LauncherAnimUtils.SCALE_PROPERTY;
|
||||
import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_FADE;
|
||||
import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_SCALE;
|
||||
import static com.android.launcher3.anim.AnimatorSetBuilder.FLAG_DONT_ANIMATE_OVERVIEW;
|
||||
import static com.android.launcher3.anim.Interpolators.AGGRESSIVE_EASE_IN_OUT;
|
||||
import static com.android.launcher3.anim.Interpolators.LINEAR;
|
||||
|
||||
@@ -66,6 +67,9 @@ public abstract class BaseRecentsViewStateController<T extends View>
|
||||
// The entire recents animation is played atomically.
|
||||
return;
|
||||
}
|
||||
if (builder.hasFlag(FLAG_DONT_ANIMATE_OVERVIEW)) {
|
||||
return;
|
||||
}
|
||||
setStateWithAnimationInternal(toState, builder, config);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user