Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e97a3b3f authored by Adam Cohen's avatar Adam Cohen
Browse files

Fix issue where empty page doesn't get deleted when flinging to delete a widget in spring loaded

Change-Id: I59a78a4b9135b2c96f0adb4a2e63b19d504706b7
parent a718fc27
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -811,10 +811,17 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
                !(target instanceof DeleteDropTarget))) {
            // Exit spring loaded mode if we have not successfully dropped or have not handled the
            // drop in Workspace
            mLauncher.getWorkspace().removeExtraEmptyScreen(true, new Runnable() {
                @Override
                public void run() {
                    mLauncher.exitSpringLoadedDragMode();
                    mLauncher.unlockScreenOrientation(false);
                }
            });
        } else {
            mLauncher.unlockScreenOrientation(false);
        }
    }

    @Override
    public View getContent() {