Changing isExternalDragWidget to isDragWidget as workspace goes to modal state even when dragging from workspace
am: e49a97aba0
Change-Id: I5edca107e0616db32805374afe1c77cfde01a35a
This commit is contained in:
@@ -3177,9 +3177,6 @@ public class Workspace extends PagedView
|
||||
return (d.dragInfo instanceof LauncherAppWidgetInfo ||
|
||||
d.dragInfo instanceof PendingAddWidgetInfo);
|
||||
}
|
||||
private boolean isExternalDragWidget(DragObject d) {
|
||||
return d.dragSource != this && isDragWidget(d);
|
||||
}
|
||||
|
||||
public void onDragOver(DragObject d) {
|
||||
// Skip drag over events while we are dragging over side pages
|
||||
@@ -3201,7 +3198,7 @@ public class Workspace extends PagedView
|
||||
final View child = (mDragInfo == null) ? null : mDragInfo.cell;
|
||||
// Identify whether we have dragged over a side page
|
||||
if (workspaceInModalState()) {
|
||||
if (mLauncher.getHotseat() != null && !isExternalDragWidget(d)) {
|
||||
if (mLauncher.getHotseat() != null && !isDragWidget(d)) {
|
||||
if (isPointInSelfOverHotseat(d.x, d.y)) {
|
||||
layout = mLauncher.getHotseat().getLayout();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user