mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-17 09:38:19 +00:00
Merge "Add null check before detach content view from dragView at onDropComplete" into sc-dev
This commit is contained in:
@@ -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