mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-17 09:38:19 +00:00
Merge "Fix CellLayout cast exception when drag is canceled" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
76f5572648
@@ -1922,6 +1922,11 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
|
||||
CellLayout layout = (CellLayout) cell.getParent().getParent();
|
||||
layout.markCellsAsOccupiedForView(cell);
|
||||
}
|
||||
} else {
|
||||
// When drag is cancelled, reattach content view back to its original parent.
|
||||
if (mDragInfo.cell instanceof LauncherAppWidgetHostView) {
|
||||
d.dragView.detachContentView(/* reattachToPreviousParent= */ true);
|
||||
}
|
||||
}
|
||||
|
||||
final CellLayout parent = (CellLayout) cell.getParent().getParent();
|
||||
|
||||
Reference in New Issue
Block a user