Fix crash on uninstall via drag.
Bug: 10347293 Change-Id: I2a2e4693fb79dd71a71cb53f9a90899788702a17
This commit is contained in:
1 parent
f96c9f889f
commit
b56e95af5d
1 file changed
+4
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user