summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/trebuchet/Launcher.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/Launcher.java')
-rw-r--r--src/com/cyanogenmod/trebuchet/Launcher.java17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Launcher.java b/src/com/cyanogenmod/trebuchet/Launcher.java
index 1206ec1c7..8d460c848 100644
--- a/src/com/cyanogenmod/trebuchet/Launcher.java
+++ b/src/com/cyanogenmod/trebuchet/Launcher.java
@@ -2301,8 +2301,14 @@ public final class Launcher extends Activity
setPivotsForZoom(toView, scale);
+ Workspace.TransitionEffect transitionEffect = mWorkspace.getTransitionEffect();
+ final boolean animateWorkspace = transitionEffect != Workspace.TransitionEffect.RotateUp &&
+ transitionEffect != Workspace.TransitionEffect.RotateDown;
+
// Shrink workspaces away if going to AppsCustomize from workspace
- mWorkspace.changeState(Workspace.State.SMALL, animated);
+ if (animateWorkspace) {
+ mWorkspace.changeState(Workspace.State.SMALL, animated);
+ }
if (animated) {
final ValueAnimator scaleAnim = ValueAnimator.ofFloat(0f, 1f).setDuration(duration);
@@ -2485,7 +2491,14 @@ public final class Launcher extends Activity
Resources res = getResources();
int stagger = res.getInteger(R.integer.config_appsCustomizeWorkspaceAnimationStagger);
- mWorkspace.changeState(Workspace.State.NORMAL, animated, stagger);
+ Workspace.TransitionEffect transitionEffect = mWorkspace.getTransitionEffect();
+ final boolean animateWorkspace = (transitionEffect != Workspace.TransitionEffect.RotateUp &&
+ transitionEffect != Workspace.TransitionEffect.RotateDown) || mWorkspace.getState() != Workspace.State.SMALL;
+
+ if (animateWorkspace) {
+ mWorkspace.changeState(Workspace.State.NORMAL, animated, stagger);
+ }
+
if (mState != State.WORKSPACE) {
mWorkspace.setVisibility(View.VISIBLE);
hideAppsCustomizeHelper(animated, false);