Don't let folder be replaced with final item twice.

Bug: 25732317
Change-Id: I77b3ddc8951583bebfb908fda934c9b80ddebce0
This commit is contained in:
Tony Wickham
2015-11-24 15:34:53 -08:00
parent 7bce5f7988
commit 1a690cb785
+5
View File
@@ -452,6 +452,11 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
mContent.snapToPageImmediately(0);
}
// This is set to true in close(), but isn't reset to false until onDropCompleted(). This
// leads to an consistent state if you drag out of the folder and drag back in without
// dropping. One resulting issue is that replaceFolderWithFinalItem() can be called twice.
mDeleteFolderOnDropCompleted = false;
Animator openFolderAnim = null;
final Runnable onCompleteRunnable;
if (!Utilities.ATLEAST_LOLLIPOP) {