commit | c3bc26031cc5b36328bd7cdbcf04ff269dea11a5 | [log] [tgz] |
---|---|---|
author | Adam Cohen <adamcohen@google.com> | Wed Mar 30 11:49:12 2011 -0700 |
committer | Adam Cohen <adamcohen@google.com> | Wed Mar 30 11:51:31 2011 -0700 |
tree | f3af8ce1efd91a3d81f556b1ffa97007739b56ce | |
parent | f27b5e7540cb469486ede0137ba4f42544ab1482 [diff] |
Turning off the 3D rotation for non-xlarge devices Change-Id: I4fe13b362458d6bad3da5263cf95f27a3b5b08b9
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index ce794bd..7e17a54 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java
@@ -1073,6 +1073,9 @@ @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++) {