am b79a48c2: Merge "Add logging for NPE (issue 11627249)" into jb-ub-now-jolly-elf
* commit 'b79a48c251947d4bceb289953485f2aef6e55852': Add logging for NPE (issue 11627249)
This commit is contained in:
@@ -2536,6 +2536,13 @@ public class Workspace extends SmoothPagedView
|
|||||||
icon.clearPressedOrFocusedBackground();
|
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(),
|
mDragController.startDrag(b, dragLayerX, dragLayerY, source, child.getTag(),
|
||||||
DragController.DRAG_ACTION_MOVE, dragVisualizeOffset, dragRect, scale);
|
DragController.DRAG_ACTION_MOVE, dragVisualizeOffset, dragRect, scale);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user