mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Moving mState from Workspace to StateManager
Bug: 67678570 Change-Id: I8cdab044d0760fcc4c188830cde4f963d072b907
This commit is contained in:
@@ -161,12 +161,10 @@ public class WorkspaceStateTransitionAnimation {
|
||||
setWorkspaceProperty(toState, NO_ANIM_PROPERTY_SETTER);
|
||||
}
|
||||
|
||||
public void setStateWithAnimation(LauncherState fromState, LauncherState toState,
|
||||
AnimatorSet anim, AnimationLayerSet layerViews, AnimationConfig config) {
|
||||
long duration = config.getDuration(toState == LauncherState.NORMAL
|
||||
? fromState.transitionDuration : toState.transitionDuration);
|
||||
public void setStateWithAnimation(LauncherState toState, AnimatorSet anim,
|
||||
AnimationLayerSet layerViews, AnimationConfig config) {
|
||||
AnimatedPropertySetter propertySetter =
|
||||
new AnimatedPropertySetter(duration, layerViews, anim);
|
||||
new AnimatedPropertySetter(config.duration, layerViews, anim);
|
||||
setWorkspaceProperty(toState, propertySetter);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user