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

This commit is contained in:
Michael Jurka
2011-01-31 21:35:39 -08:00
parent 8bb771ecb8
commit bfadaad352
+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) {