Merge "Using hardware layers for animations to all apps/customize" into honeycomb
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 3777410..63c8a2a 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -2690,6 +2690,7 @@
}
scaleAnim.setInterpolator(new Workspace.ZoomOutInterpolator());
+ toView.setLayerType(View.LAYER_TYPE_HARDWARE, null);
scaleAnim.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationStart(Animator animation) {
@@ -2706,6 +2707,7 @@
// If we don't set the final scale values here, if this animation is cancelled
// it will have the wrong scale value and subsequent cameraPan animations will
// not fix that
+ toView.setLayerType(View.LAYER_TYPE_NONE, null);
toView.setScaleX(1.0f);
toView.setScaleY(1.0f);
}