mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Remove Overview atomic animation support
- Remove PLAY_ATOMIC_OVERVIEW_SCALE and PLAY_ATOMIC_OVERVIEW_PEEK - Remove complicated parallel atomic animation support from AbstractStateChangeTouchController and subclasses - Remove some code related to going between Overview <-> AllApps Test: Swipe between states in all 3 navigation modes Bug: 175137718 Change-Id: Ice314d46946c3a983cdc6ccf1a67effb5da9156e
This commit is contained in:
@@ -18,7 +18,7 @@ package com.android.launcher3.statemanager;
|
||||
|
||||
import static android.animation.ValueAnimator.areAnimatorsEnabled;
|
||||
|
||||
import static com.android.launcher3.states.StateAnimationConfig.ANIM_ALL_COMPONENTS;
|
||||
import static com.android.launcher3.states.StateAnimationConfig.PLAY_ANIMATION;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.Animator.AnimatorListener;
|
||||
@@ -289,7 +289,7 @@ public class StateManager<STATE_TYPE extends BaseState<STATE_TYPE>> {
|
||||
*/
|
||||
public AnimatorPlaybackController createAnimationToNewWorkspace(
|
||||
STATE_TYPE state, long duration) {
|
||||
return createAnimationToNewWorkspace(state, duration, ANIM_ALL_COMPONENTS);
|
||||
return createAnimationToNewWorkspace(state, duration, PLAY_ANIMATION);
|
||||
}
|
||||
|
||||
public AnimatorPlaybackController createAnimationToNewWorkspace(
|
||||
@@ -312,7 +312,7 @@ public class StateManager<STATE_TYPE extends BaseState<STATE_TYPE>> {
|
||||
|
||||
private PendingAnimation createAnimationToNewWorkspaceInternal(final STATE_TYPE state) {
|
||||
PendingAnimation builder = new PendingAnimation(mConfig.duration);
|
||||
if (mConfig.getAnimComponents() != 0) {
|
||||
if (mConfig.hasAnimationFlag(PLAY_ANIMATION)) {
|
||||
for (StateHandler handler : getStateHandlers()) {
|
||||
handler.setStateWithAnimation(state, mConfig, builder);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user