Adding animations when dropping on delete / uninstall drop target
-> issue 5043661 Change-Id: I4e4830acc15e006e637b35c3d0dcc72c23414b95
This commit is contained in:
@@ -449,7 +449,8 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
|
||||
}
|
||||
private void endDragging(View target, boolean success) {
|
||||
mLauncher.getWorkspace().onDragStopped(success);
|
||||
if (!success || target != mLauncher.getWorkspace()) {
|
||||
if (!success || (target != mLauncher.getWorkspace() &&
|
||||
!(target instanceof DeleteDropTarget))) {
|
||||
// Exit spring loaded mode if we have not successfully dropped or have not handled the
|
||||
// drop in Workspace
|
||||
mLauncher.exitSpringLoadedDragMode();
|
||||
|
||||
Reference in New Issue
Block a user