Loading quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java +1 −2 Original line number Diff line number Diff line Loading @@ -24,7 +24,6 @@ import com.android.launcher3.Launcher; import com.android.launcher3.LauncherState; import com.android.launcher3.LauncherStateManager.AnimationConfig; import com.android.launcher3.LauncherStateManager.StateHandler; import com.android.launcher3.anim.AnimationLayerSet; import com.android.launcher3.anim.AnimationSuccessListener; import com.android.launcher3.anim.AnimatorSetBuilder; import com.android.launcher3.anim.Interpolators; Loading Loading @@ -54,7 +53,7 @@ public class RecentsViewStateController implements StateHandler { } @Override public void setStateWithAnimation(LauncherState toState, AnimationLayerSet layerViews, public void setStateWithAnimation(LauncherState toState, AnimatorSetBuilder builder, AnimationConfig config) { ObjectAnimator progressAnim = mTransitionProgress.animateToValue(toState == LauncherState.OVERVIEW ? 1 : 0); Loading src/com/android/launcher3/LauncherStateManager.java +2 −6 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ import android.os.Handler; import android.os.Looper; import android.view.View; import com.android.launcher3.anim.AnimationLayerSet; import com.android.launcher3.anim.AnimationSuccessListener; import com.android.launcher3.anim.AnimatorPlaybackController; import com.android.launcher3.anim.AnimatorSetBuilder; Loading Loading @@ -212,15 +211,12 @@ public class LauncherStateManager { protected AnimatorSet createAnimationToNewWorkspaceInternal(final LauncherState state, AnimatorSetBuilder builder, final Runnable onCompleteRunnable) { final AnimationLayerSet layerViews = new AnimationLayerSet(); for (StateHandler handler : getStateHandlers()) { builder.startTag(handler); handler.setStateWithAnimation(state, layerViews, builder, mConfig); handler.setStateWithAnimation(state, builder, mConfig); } final AnimatorSet animation = builder.build(); animation.addListener(layerViews); animation.addListener(new AnimationSuccessListener() { @Override Loading Loading @@ -339,7 +335,7 @@ public class LauncherStateManager { /** * Sets the UI to {@param state} by animating any changes. */ void setStateWithAnimation(LauncherState toState, AnimationLayerSet layerViews, void setStateWithAnimation(LauncherState toState, AnimatorSetBuilder builder, AnimationConfig config); } Loading src/com/android/launcher3/Workspace.java +2 −3 Original line number Diff line number Diff line Loading @@ -62,7 +62,6 @@ import com.android.launcher3.LauncherStateManager.AnimationConfig; import com.android.launcher3.accessibility.AccessibleDragListenerAdapter; import com.android.launcher3.accessibility.OverviewScreenAccessibilityDelegate; import com.android.launcher3.accessibility.WorkspaceAccessibilityHelper; import com.android.launcher3.anim.AnimationLayerSet; import com.android.launcher3.anim.AnimatorSetBuilder; import com.android.launcher3.anim.Interpolators; import com.android.launcher3.badge.FolderBadgeInfo; Loading Loading @@ -1547,10 +1546,10 @@ public class Workspace extends PagedView * Sets the current workspace {@link LauncherState}, then animates the UI */ @Override public void setStateWithAnimation(LauncherState toState, AnimationLayerSet layerViews, public void setStateWithAnimation(LauncherState toState, AnimatorSetBuilder builder, AnimationConfig config) { StateTransitionListener listener = new StateTransitionListener(toState); mStateTransitionAnimation.setStateWithAnimation(toState, builder, layerViews, config); mStateTransitionAnimation.setStateWithAnimation(toState, builder, config); // Invalidate the pages now, so that we have the visible pages before the // animation is started Loading src/com/android/launcher3/WorkspaceStateTransitionAnimation.java +3 −9 Original line number Diff line number Diff line Loading @@ -21,7 +21,6 @@ import static com.android.launcher3.LauncherAnimUtils.SCALE_PROPERTY; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.animation.TimeInterpolator; import android.animation.ValueAnimator; Loading @@ -32,7 +31,6 @@ import android.view.accessibility.AccessibilityManager; import com.android.launcher3.LauncherState.PageAlphaProvider; import com.android.launcher3.LauncherStateManager.AnimationConfig; import com.android.launcher3.anim.AnimationLayerSet; import com.android.launcher3.anim.AnimatorSetBuilder; import com.android.launcher3.anim.Interpolators; Loading Loading @@ -112,9 +110,9 @@ public class WorkspaceStateTransitionAnimation { } public void setStateWithAnimation(LauncherState toState, AnimatorSetBuilder builder, AnimationLayerSet layerViews, AnimationConfig config) { AnimationConfig config) { AnimatedPropertySetter propertySetter = new AnimatedPropertySetter(config.duration, layerViews, builder); new AnimatedPropertySetter(config.duration, builder); setWorkspaceProperty(toState, propertySetter); } Loading Loading @@ -190,13 +188,10 @@ public class WorkspaceStateTransitionAnimation { public static class AnimatedPropertySetter extends PropertySetter { private final long mDuration; private final AnimationLayerSet mLayerViews; private final AnimatorSetBuilder mStateAnimator; public AnimatedPropertySetter( long duration, AnimationLayerSet layerView, AnimatorSetBuilder builder) { public AnimatedPropertySetter(long duration, AnimatorSetBuilder builder) { mDuration = duration; mLayerViews = layerView; mStateAnimator = builder; } Loading @@ -211,7 +206,6 @@ public class WorkspaceStateTransitionAnimation { } anim.setDuration(mDuration).setInterpolator(getFadeInterpolator(alpha)); mLayerViews.addView(view); mStateAnimator.play(anim); } Loading src/com/android/launcher3/allapps/AllAppsTransitionController.java +2 −3 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ import com.android.launcher3.LauncherStateManager.AnimationConfig; import com.android.launcher3.R; import com.android.launcher3.Utilities; import com.android.launcher3.Workspace; import com.android.launcher3.anim.AnimationLayerSet; import com.android.launcher3.anim.AnimationSuccessListener; import com.android.launcher3.anim.AnimatorSetBuilder; import com.android.launcher3.anim.Interpolators; Loading Loading @@ -122,7 +121,7 @@ public class AllAppsTransitionController * @param progress value between 0 and 1, 0 shows all apps and 1 shows workspace * * @see #setState(LauncherState) * @see #setStateWithAnimation(LauncherState, AnimationLayerSet, AnimatorSetBuilder, AnimationConfig) * @see #setStateWithAnimation(LauncherState, AnimatorSetBuilder, AnimationConfig) */ public void setProgress(float progress) { mProgress = progress; Loading Loading @@ -167,7 +166,7 @@ public class AllAppsTransitionController * dependent UI using various animation events */ @Override public void setStateWithAnimation(LauncherState toState, AnimationLayerSet layerViews, public void setStateWithAnimation(LauncherState toState, AnimatorSetBuilder builder, AnimationConfig config) { if (Float.compare(mProgress, toState.verticalProgress) == 0) { // Fail fast Loading Loading
quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java +1 −2 Original line number Diff line number Diff line Loading @@ -24,7 +24,6 @@ import com.android.launcher3.Launcher; import com.android.launcher3.LauncherState; import com.android.launcher3.LauncherStateManager.AnimationConfig; import com.android.launcher3.LauncherStateManager.StateHandler; import com.android.launcher3.anim.AnimationLayerSet; import com.android.launcher3.anim.AnimationSuccessListener; import com.android.launcher3.anim.AnimatorSetBuilder; import com.android.launcher3.anim.Interpolators; Loading Loading @@ -54,7 +53,7 @@ public class RecentsViewStateController implements StateHandler { } @Override public void setStateWithAnimation(LauncherState toState, AnimationLayerSet layerViews, public void setStateWithAnimation(LauncherState toState, AnimatorSetBuilder builder, AnimationConfig config) { ObjectAnimator progressAnim = mTransitionProgress.animateToValue(toState == LauncherState.OVERVIEW ? 1 : 0); Loading
src/com/android/launcher3/LauncherStateManager.java +2 −6 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ import android.os.Handler; import android.os.Looper; import android.view.View; import com.android.launcher3.anim.AnimationLayerSet; import com.android.launcher3.anim.AnimationSuccessListener; import com.android.launcher3.anim.AnimatorPlaybackController; import com.android.launcher3.anim.AnimatorSetBuilder; Loading Loading @@ -212,15 +211,12 @@ public class LauncherStateManager { protected AnimatorSet createAnimationToNewWorkspaceInternal(final LauncherState state, AnimatorSetBuilder builder, final Runnable onCompleteRunnable) { final AnimationLayerSet layerViews = new AnimationLayerSet(); for (StateHandler handler : getStateHandlers()) { builder.startTag(handler); handler.setStateWithAnimation(state, layerViews, builder, mConfig); handler.setStateWithAnimation(state, builder, mConfig); } final AnimatorSet animation = builder.build(); animation.addListener(layerViews); animation.addListener(new AnimationSuccessListener() { @Override Loading Loading @@ -339,7 +335,7 @@ public class LauncherStateManager { /** * Sets the UI to {@param state} by animating any changes. */ void setStateWithAnimation(LauncherState toState, AnimationLayerSet layerViews, void setStateWithAnimation(LauncherState toState, AnimatorSetBuilder builder, AnimationConfig config); } Loading
src/com/android/launcher3/Workspace.java +2 −3 Original line number Diff line number Diff line Loading @@ -62,7 +62,6 @@ import com.android.launcher3.LauncherStateManager.AnimationConfig; import com.android.launcher3.accessibility.AccessibleDragListenerAdapter; import com.android.launcher3.accessibility.OverviewScreenAccessibilityDelegate; import com.android.launcher3.accessibility.WorkspaceAccessibilityHelper; import com.android.launcher3.anim.AnimationLayerSet; import com.android.launcher3.anim.AnimatorSetBuilder; import com.android.launcher3.anim.Interpolators; import com.android.launcher3.badge.FolderBadgeInfo; Loading Loading @@ -1547,10 +1546,10 @@ public class Workspace extends PagedView * Sets the current workspace {@link LauncherState}, then animates the UI */ @Override public void setStateWithAnimation(LauncherState toState, AnimationLayerSet layerViews, public void setStateWithAnimation(LauncherState toState, AnimatorSetBuilder builder, AnimationConfig config) { StateTransitionListener listener = new StateTransitionListener(toState); mStateTransitionAnimation.setStateWithAnimation(toState, builder, layerViews, config); mStateTransitionAnimation.setStateWithAnimation(toState, builder, config); // Invalidate the pages now, so that we have the visible pages before the // animation is started Loading
src/com/android/launcher3/WorkspaceStateTransitionAnimation.java +3 −9 Original line number Diff line number Diff line Loading @@ -21,7 +21,6 @@ import static com.android.launcher3.LauncherAnimUtils.SCALE_PROPERTY; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.animation.TimeInterpolator; import android.animation.ValueAnimator; Loading @@ -32,7 +31,6 @@ import android.view.accessibility.AccessibilityManager; import com.android.launcher3.LauncherState.PageAlphaProvider; import com.android.launcher3.LauncherStateManager.AnimationConfig; import com.android.launcher3.anim.AnimationLayerSet; import com.android.launcher3.anim.AnimatorSetBuilder; import com.android.launcher3.anim.Interpolators; Loading Loading @@ -112,9 +110,9 @@ public class WorkspaceStateTransitionAnimation { } public void setStateWithAnimation(LauncherState toState, AnimatorSetBuilder builder, AnimationLayerSet layerViews, AnimationConfig config) { AnimationConfig config) { AnimatedPropertySetter propertySetter = new AnimatedPropertySetter(config.duration, layerViews, builder); new AnimatedPropertySetter(config.duration, builder); setWorkspaceProperty(toState, propertySetter); } Loading Loading @@ -190,13 +188,10 @@ public class WorkspaceStateTransitionAnimation { public static class AnimatedPropertySetter extends PropertySetter { private final long mDuration; private final AnimationLayerSet mLayerViews; private final AnimatorSetBuilder mStateAnimator; public AnimatedPropertySetter( long duration, AnimationLayerSet layerView, AnimatorSetBuilder builder) { public AnimatedPropertySetter(long duration, AnimatorSetBuilder builder) { mDuration = duration; mLayerViews = layerView; mStateAnimator = builder; } Loading @@ -211,7 +206,6 @@ public class WorkspaceStateTransitionAnimation { } anim.setDuration(mDuration).setInterpolator(getFadeInterpolator(alpha)); mLayerViews.addView(view); mStateAnimator.play(anim); } Loading
src/com/android/launcher3/allapps/AllAppsTransitionController.java +2 −3 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ import com.android.launcher3.LauncherStateManager.AnimationConfig; import com.android.launcher3.R; import com.android.launcher3.Utilities; import com.android.launcher3.Workspace; import com.android.launcher3.anim.AnimationLayerSet; import com.android.launcher3.anim.AnimationSuccessListener; import com.android.launcher3.anim.AnimatorSetBuilder; import com.android.launcher3.anim.Interpolators; Loading Loading @@ -122,7 +121,7 @@ public class AllAppsTransitionController * @param progress value between 0 and 1, 0 shows all apps and 1 shows workspace * * @see #setState(LauncherState) * @see #setStateWithAnimation(LauncherState, AnimationLayerSet, AnimatorSetBuilder, AnimationConfig) * @see #setStateWithAnimation(LauncherState, AnimatorSetBuilder, AnimationConfig) */ public void setProgress(float progress) { mProgress = progress; Loading Loading @@ -167,7 +166,7 @@ public class AllAppsTransitionController * dependent UI using various animation events */ @Override public void setStateWithAnimation(LauncherState toState, AnimationLayerSet layerViews, public void setStateWithAnimation(LauncherState toState, AnimatorSetBuilder builder, AnimationConfig config) { if (Float.compare(mProgress, toState.verticalProgress) == 0) { // Fail fast Loading