diff options
author | Winson Chung <winsonc@google.com> | 2011-03-02 13:50:47 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-03-02 13:50:47 -0800 |
commit | d72b048e207b8577b36f8c9a685a70046c3c5f58 (patch) | |
tree | e5b0d7094767519d0bc36ee867b0eb1cf4c4685a /src | |
parent | dba3f21776acb49302ce4fffd5ed05f27334a904 (diff) | |
parent | 707de2828c14a1451aa08b8c5c48046a89aef839 (diff) | |
download | android_packages_apps_Trebuchet-d72b048e207b8577b36f8c9a685a70046c3c5f58.tar.gz android_packages_apps_Trebuchet-d72b048e207b8577b36f8c9a685a70046c3c5f58.tar.bz2 android_packages_apps_Trebuchet-d72b048e207b8577b36f8c9a685a70046c3c5f58.zip |
Merge "Fixing issue where you can't drag to a full screen when in spring loaded mode (to get to next pages)"
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher2/Workspace.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index e108f3821..40dc98dc4 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -2706,7 +2706,13 @@ public class Workspace extends SmoothPagedView mSpringLoadedDragController.onDragExit(); } mDragTargetLayout = layout; - if (mDragTargetLayout != null && mDragTargetLayout.getAcceptsDrops()) { + // In spring-loaded mode, we still want the user to be able to hover over a + // full screen (which is traditionally set to not accept drops) if they want to + // get to pages beyond the screen that is full. + boolean allowDragOver = (mDragTargetLayout != null) && + (mDragTargetLayout.getAcceptsDrops() || + (mShrinkState == ShrinkState.SPRING_LOADED)); + if (allowDragOver) { mDragTargetLayout.setIsDragOverlapping(true); mSpringLoadedDragController.onDragEnter( mDragTargetLayout, mShrinkState == ShrinkState.SPRING_LOADED); |