mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Revert "Update overview from home transitions"
This reverts commit f3bc797182.
Reason for revert: updating upstream, need to wait to cherry-pick until that's approved
Change-Id: I702286dba66fb4582ab682a5b0b8cd80ccebf346
This commit is contained in:
@@ -28,9 +28,6 @@ import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.anim.AnimationSuccessListener;
|
||||
import com.android.launcher3.anim.AnimatorPlaybackController;
|
||||
import com.android.launcher3.anim.PendingAnimation;
|
||||
@@ -40,7 +37,6 @@ import com.android.launcher3.testing.TestProtocol;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
/**
|
||||
* Class to manage transitions between different states for a StatefulActivity based on different
|
||||
@@ -266,23 +262,9 @@ public class StateManager<STATE_TYPE extends BaseState<STATE_TYPE>> {
|
||||
*/
|
||||
public AnimatorSet createAtomicAnimation(
|
||||
STATE_TYPE fromState, STATE_TYPE toState, StateAnimationConfig config) {
|
||||
return createAtomicAnimation(fromState, toState, config, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see #createAtomicAnimation(BaseState, BaseState, StateAnimationConfig)
|
||||
* @param overrideConfig Optional callback to override some config params that were populated
|
||||
* by {{@link #prepareForAtomicAnimation}} before creating the animation.
|
||||
*/
|
||||
public AnimatorSet createAtomicAnimation(STATE_TYPE fromState, STATE_TYPE toState,
|
||||
StateAnimationConfig config, @Nullable Consumer<StateAnimationConfig> overrideConfig) {
|
||||
PendingAnimation builder = new PendingAnimation(config.duration);
|
||||
prepareForAtomicAnimation(fromState, toState, config);
|
||||
|
||||
if (overrideConfig != null) {
|
||||
overrideConfig.accept(config);
|
||||
}
|
||||
|
||||
for (StateHandler handler : mActivity.getStateManager().getStateHandlers()) {
|
||||
handler.setStateWithAnimation(toState, config, builder);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user