From c3bc26031cc5b36328bd7cdbcf04ff269dea11a5 Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Wed, 30 Mar 2011 11:49:12 -0700 Subject: [PATCH] Turning off the 3D rotation for non-xlarge devices Change-Id: I4fe13b362458d6bad3da5263cf95f27a3b5b08b9 --- src/com/android/launcher2/Workspace.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index ce794bd703..7e17a54f38 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++) {