-> Set grid to 8x7 with proper spacing for landscape/portrait
-> Added a button to the top left of Launcher which switches
   between landscape and portrait. For testing purposes only.

Change-Id: I01f8cfcf92c8ba7727eeba0e59a0b8ff055598fe
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 008b636..d7ce6f2 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -1625,6 +1625,19 @@
     }
 
     /**
+     * Temporary: to allow us to test rotation in the launcher.
+     *
+     * @param v The view that was clicked.
+     */
+    public void onClickRotateButton(View v) {
+        // TODO: this method is temporary. Remove it.
+            setRequestedOrientation(
+                (getRequestedOrientation() == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)
+                    ? ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
+                    : ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
+    }
+
+    /**
      * Event handler for the "grid" button that appears on the home screen, which
      * enters all apps mode.
      *