Fixed 3073371: Home screen locked after app launch
Change-Id: Iedac4b94d20cc3352aa247c58978a8f60df1a09f
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java
index a22a466..ac5c1b9 100644
--- a/src/com/android/launcher2/Workspace.java
+++ b/src/com/android/launcher2/Workspace.java
@@ -910,8 +910,12 @@
cl.setRotationY(rotation);
}
}
- s.addListener(mUnshrinkAnimationListener);
- s.start();
+ if (animated) {
+ // If we call this when we're not animated, onAnimationEnd is never called on
+ // the listener; make sure we only use the listener when we're actually animating
+ s.addListener(mUnshrinkAnimationListener);
+ s.start();
+ }
}
}