mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Changing isExternalDragWidget to isDragWidget as workspace goes to
modal state even when dragging from workspace Bug: 29900481 Change-Id: I60ce6073b1c06ed19c75a341f9b73f6a147be889
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