diff options
Diffstat (limited to 'src/com/android/launcher2/Launcher.java')
-rw-r--r-- | src/com/android/launcher2/Launcher.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 008b6361c..d7ce6f26c 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -1625,6 +1625,19 @@ public final class Launcher extends Activity } /** + * 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. * |