Fix crash on uninstall via drag.

Bug: 10347293
Change-Id: I2a2e4693fb79dd71a71cb53f9a90899788702a17
This commit is contained in:
Daniel Sandler committed 2013-09-04 23:13:39 -04:00
1 parent f96c9f889f
commit b56e95af5d
1 file changed
+4 -1
+4 -1
View File
@@ -3493,7 +3493,10 @@ public class Workspace extends SmoothPagedView
if (success && !(beingCalledAfterUninstall && !mUninstallSuccessful)) {
if (target != this && mDragInfo != null) {
getParentCellLayoutForView(mDragInfo.cell).removeView(mDragInfo.cell);
CellLayout parentCell = getParentCellLayoutForView(mDragInfo.cell);
if (parentCell != null) {
parentCell.removeView(mDragInfo.cell);
}
if (mDragInfo.cell instanceof DropTarget) {
mDragController.removeDropTarget((DropTarget) mDragInfo.cell);
}