Turning off the 3D rotation for non-xlarge devices

Change-Id: I4fe13b362458d6bad3da5263cf95f27a3b5b08b9
This commit is contained in:
Adam Cohen
2011-03-30 11:49:12 -07:00
parent f27b5e7540
commit c3bc26031c
+3
View File
@@ -1073,6 +1073,9 @@ public class Workspace extends SmoothPagedView
@Override
protected void screenScrolled(int screenCenter) {
// If the screen is not xlarge, then don't rotate the CellLayouts
if (!LauncherApplication.isScreenXLarge()) return;
final int halfScreenSize = getMeasuredWidth() / 2;
for (int i = 0; i < getChildCount(); i++) {