Don't switch pages when dragging out of folder

-> Fix bug where page switch indicator wouldn't draw on right
-> Fixed some code related to folder reordering -- no behaviour change
   yet, but once the new AutoScroll is in, this should behave correctly
   (ie. shouldn't reorder while in scroll zone)

Change-Id: Ic14a8d70858777164f094204472dc6a726dd461a
This commit is contained in:
Adam Cohen committed 2013-08-14 13:36:51 -07:00
1 parent 1b7d423c65
commit 61a9a5c359
3 files changed
+4 -3

No files matched your search

+1 -2
View File
@@ -3815,12 +3815,11 @@ public class Workspace extends SmoothPagedView
}
boolean result = false;
if (!isSmall() && !mIsSwitchingState) {
if (!isSmall() && !mIsSwitchingState && getOpenFolder() == null) {
mInScrollArea = true;
final int page = getNextPage() +
(direction == DragController.SCROLL_LEFT ? -1 : 1);
// We always want to exit the current layout to ensure parity of enter / exit
setCurrentDropLayout(null);