Merge "Fix crash when hotseat icon is dragged onto Workspace" into sc-v2-dev am: ce10de7964 am: fef84dd5ea
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15771582 Change-Id: I99ee908d056147d354dce088e9eb751da3ae6f9f
This commit is contained in:
commit
f0270040b7
1 file changed
+2
-1
@@ -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