Set mDragInProcess to false in onDragEnd.
Before this change, it was possible to touch (not drag and drop)
a Folder and have it open to a non-first page.
With this change, the Folder always opens to the first page on touch.
For drag and drop, it will still open to the last page.
Bug: 36022592
Change-Id: Ib0417eaf7e4866e874369b3b35248231a54cba06
diff --git a/src/com/android/launcher3/folder/Folder.java b/src/com/android/launcher3/folder/Folder.java
index 2838351..b9632fb 100644
--- a/src/com/android/launcher3/folder/Folder.java
+++ b/src/com/android/launcher3/folder/Folder.java
@@ -335,6 +335,7 @@
if (mIsExternalDrag && mDragInProgress) {
completeDragExit();
}
+ mDragInProgress = false;
mDragController.removeDragListener(this);
}