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

Commit b79a48c2 authored by Adam Cohen's avatar Adam Cohen Committed by Android (Google) Code Review
Browse files

Merge "Add logging for NPE (issue 11627249)" into jb-ub-now-jolly-elf

parents 17e1aeac 2f32ad29
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2536,6 +2536,13 @@ public class Workspace extends SmoothPagedView
            icon.clearPressedOrFocusedBackground();
        }

        if (child.getTag() == null || !(child.getTag() instanceof ItemInfo)) {
            String msg = "Drag started with a view that has no tag set. This "
                    + "will cause a crash (issue 11627249) down the line. "
                    + "View: " + child + "  tag: " + child.getTag();
            throw new IllegalStateException(msg);
        }

        mDragController.startDrag(b, dragLayerX, dragLayerY, source, child.getTag(),
                DragController.DRAG_ACTION_MOVE, dragVisualizeOffset, dragRect, scale);