mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Implement spring-loading of folders when dragging over.
Bug: 8912132 Change-Id: Id81889a133e56461df2e20599c4b40020818ba18
This commit is contained in:
@@ -817,7 +817,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
|
||||
*/
|
||||
private void endDragging(View target, boolean isFlingToDelete, boolean success) {
|
||||
if (isFlingToDelete || !success || (target != mLauncher.getWorkspace() &&
|
||||
!(target instanceof DeleteDropTarget))) {
|
||||
!(target instanceof DeleteDropTarget) && !(target instanceof Folder))) {
|
||||
// Exit spring loaded mode if we have not successfully dropped or have not handled the
|
||||
// drop in Workspace
|
||||
mLauncher.getWorkspace().removeExtraEmptyScreen(true, new Runnable() {
|
||||
|
||||
Reference in New Issue
Block a user