am bfadaad3: Only use hardware layers for transitions to all apps/customize in portrait

* commit 'bfadaad3522dc6b1cf3c95c08031ae088a3f610a':
  Only use hardware layers for transitions to all apps/customize in portrait
This commit is contained in:
Michael Jurka
2011-01-31 22:28:59 -08:00
committed by Android Git Automerger
+4 -1
View File
@@ -2690,7 +2690,10 @@ public final class Launcher extends Activity
}
scaleAnim.setInterpolator(new Workspace.ZoomOutInterpolator());
toView.setLayerType(View.LAYER_TYPE_HARDWARE, null);
// Only use hardware layers in portrait mode, they don't give any gains in landscape
if (mWorkspace.getWidth() < mWorkspace.getHeight()) {
toView.setLayerType(View.LAYER_TYPE_HARDWARE, null);
}
scaleAnim.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationStart(Animator animation) {