summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/AllAppsPagedView.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-01-17 14:01:04 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-01-17 14:01:04 -0800
commit0b5888e8283a5e0aeae16ac5ea344bac046522c9 (patch)
tree030b4eeee7beda7eca0d08cf98b8ddd27a15e053 /src/com/android/launcher2/AllAppsPagedView.java
parent6c7a03a858d6a695d0f6005398cc6f9b3e7dd18d (diff)
parent400438b79fe412cb625c96297edeea9c6155349e (diff)
downloadandroid_packages_apps_Trebuchet-0b5888e8283a5e0aeae16ac5ea344bac046522c9.tar.gz
android_packages_apps_Trebuchet-0b5888e8283a5e0aeae16ac5ea344bac046522c9.tar.bz2
android_packages_apps_Trebuchet-0b5888e8283a5e0aeae16ac5ea344bac046522c9.zip
Merge "Preventing screen rotations when dragging." into honeycomb
Diffstat (limited to 'src/com/android/launcher2/AllAppsPagedView.java')
-rw-r--r--src/com/android/launcher2/AllAppsPagedView.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/launcher2/AllAppsPagedView.java b/src/com/android/launcher2/AllAppsPagedView.java
index a15b73b18..8ed1f46df 100644
--- a/src/com/android/launcher2/AllAppsPagedView.java
+++ b/src/com/android/launcher2/AllAppsPagedView.java
@@ -271,6 +271,7 @@ public class AllAppsPagedView extends PagedViewWithDraggableItems implements All
}
// Start the drag
+ mLauncher.lockScreenOrientation();
mLauncher.getWorkspace().onDragStartedWithItemSpans(1, 1, b);
mDragController.startDrag(v, b, this, app, DragController.DRAG_ACTION_COPY, null);
b.recycle();
@@ -289,6 +290,7 @@ public class AllAppsPagedView extends PagedViewWithDraggableItems implements All
}
tearDownDragMode();
mLauncher.getWorkspace().onDragStopped();
+ mLauncher.unlockScreenOrientation();
}
@Override