mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-17 01:28:21 +00:00
Fix crash when hotseat icon is dragged onto Workspace
Test: manual Bug: 198820019 Change-Id: I53bb858feb7aad45472803b133ef3d026dd9f319
This commit is contained in:
@@ -647,7 +647,8 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
|
||||
if (mDragSourceInternal != null) {
|
||||
int dragSourceChildCount = mDragSourceInternal.getChildCount();
|
||||
|
||||
if (isTwoPanelEnabled()) {
|
||||
// If the icon was dragged from Hotseat, there is no page pair
|
||||
if (isTwoPanelEnabled() && !(mDragSourceInternal.getParent() instanceof Hotseat)) {
|
||||
int pagePairScreenId = getPagePair(dragObject.dragInfo.screenId);
|
||||
CellLayout pagePair = mWorkspaceScreens.get(pagePairScreenId);
|
||||
if (pagePair == null) {
|
||||
|
||||
Reference in New Issue
Block a user