Merge "Clear ref to animation after drag & drop animation completes" into ub-launcher3-edmonton

This commit is contained in:
Winson Chung 2018-05-14 22:49:57 +00:00 committed by Android (Google) Code Review
commit a92961a639
1 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,4 @@
/*
* Copyright (C) 2008 The Android Open Source Project
*
@ -479,6 +480,7 @@ public class DragLayer extends BaseDragLayer<Launcher> {
case ANIMATION_END_REMAIN_VISIBLE:
break;
}
mDropAnim = null;
}
});
mDropAnim.start();
@ -488,6 +490,7 @@ public class DragLayer extends BaseDragLayer<Launcher> {
if (mDropAnim != null) {
mDropAnim.cancel();
}
mDropAnim = null;
if (mDropView != null) {
mDragController.onDeferredEndDrag(mDropView);
}