diff options
author | Adam Cohen <adamcohen@google.com> | 2011-03-30 11:49:12 -0700 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2011-03-30 11:51:31 -0700 |
commit | c3bc26031cc5b36328bd7cdbcf04ff269dea11a5 (patch) | |
tree | f3af8ce1efd91a3d81f556b1ffa97007739b56ce | |
parent | f27b5e7540cb469486ede0137ba4f42544ab1482 (diff) | |
download | packages_apps_trebuchet-c3bc26031cc5b36328bd7cdbcf04ff269dea11a5.zip packages_apps_trebuchet-c3bc26031cc5b36328bd7cdbcf04ff269dea11a5.tar.gz packages_apps_trebuchet-c3bc26031cc5b36328bd7cdbcf04ff269dea11a5.tar.bz2 |
Turning off the 3D rotation for non-xlarge devices
Change-Id: I4fe13b362458d6bad3da5263cf95f27a3b5b08b9
-rw-r--r-- | src/com/android/launcher2/Workspace.java | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ 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++) { |