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

Commit e49a97ab authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Changing isExternalDragWidget to isDragWidget as workspace goes to

modal state even when dragging from workspace

Bug: 29900481
Change-Id: I60ce6073b1c06ed19c75a341f9b73f6a147be889
parent b20cbb25
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -3177,9 +3177,6 @@ public class Workspace extends PagedView
        return (d.dragInfo instanceof LauncherAppWidgetInfo ||
                d.dragInfo instanceof PendingAddWidgetInfo);
    }
    private boolean isExternalDragWidget(DragObject d) {
        return d.dragSource != this && isDragWidget(d);
    }

    public void onDragOver(DragObject d) {
        // Skip drag over events while we are dragging over side pages
@@ -3201,7 +3198,7 @@ public class Workspace extends PagedView
        final View child = (mDragInfo == null) ? null : mDragInfo.cell;
        // Identify whether we have dragged over a side page
        if (workspaceInModalState()) {
            if (mLauncher.getHotseat() != null && !isExternalDragWidget(d)) {
            if (mLauncher.getHotseat() != null && !isDragWidget(d)) {
                if (isPointInSelfOverHotseat(d.x, d.y)) {
                    layout = mLauncher.getHotseat().getLayout();
                }