Add null check before detach content view from dragView at onDropComplete
Test: Drop a conversation widget on a configuration button. No crash
is observed.
Fix: 191762933
Change-Id: I483c6f4dbc9fc6c096383682284a4c854707f583
This commit is contained in:
1 parent
719be9a9e4
commit
92335ed7bd
1 file changed
+1
-1
@@ -2792,7 +2792,7 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
|
||||
}
|
||||
} else if (mDragInfo != null) {
|
||||
// When drag is cancelled, reattach content view back to its original parent.
|
||||
if (mDragInfo.cell instanceof LauncherAppWidgetHostView) {
|
||||
if (mDragInfo.cell instanceof LauncherAppWidgetHostView && d.dragView != null) {
|
||||
d.dragView.detachContentView(/* reattachToPreviousParent= */ true);
|
||||
}
|
||||
final CellLayout cellLayout = mLauncher.getCellLayout(
|
||||
|
||||
Reference in new issue
Block a user