Goodbye folder sorting

> Removing all traces of folder sorting

Change-Id: Id77a7745564c869f5c5c1b3a560bf606fe08b107
This commit is contained in:
Sunny Goyal committed 2015-04-27 14:02:06 -07:00
1 parent f782fb5258
commit 8167dc2dcf
4 files changed
+7 -223

No files matched your search

+1 -13
View File
@@ -82,12 +82,6 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
*/
public static final int SCROLL_HINT_DURATION = DragController.SCROLL_DELAY;
/**
* Time in milliseconds for which an icon sticks to the target position
* in case of a sorted folder.
*/
private static final int SORTED_STICKY_REORDER_DELAY = 1500;
/**
* Fraction of icon width which behave as scroll region.
*/
@@ -417,7 +411,7 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
if (!(getParent() instanceof DragLayer)) return;
mContent.completePendingPageChanges();
if (!(mDragInProgress && mContent.mIsSorted)) {
if (!mDragInProgress) {
// Open on the first page.
mContent.snapToPageImmediately(0);
}
@@ -533,12 +527,6 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
mIsExternalDrag = true;
mDragInProgress = true;
if (mContent.mIsSorted) {
mScrollPauseAlarm.setOnAlarmListener(null);
mScrollPauseAlarm.cancelAlarm();
mScrollPauseAlarm.setAlarm(SORTED_STICKY_REORDER_DELAY);
}
// Since this folder opened by another controller, it might not get onDrop or
// onDropComplete. Perform cleanup once drag-n-drop ends.
mDragController.addDragListener(this);