mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Apply local color extraction during drag-n-drop
Test: Drag a test widget around and observe local extract color
is applied.
Bug: b/182282587, b/182816217
Change-Id: If63a9d91ceb2102d5d913bca85997b8be07b1adf
This commit is contained in:
@@ -111,6 +111,7 @@ import com.android.launcher3.widget.PendingAddShortcutInfo;
|
||||
import com.android.launcher3.widget.PendingAddWidgetInfo;
|
||||
import com.android.launcher3.widget.PendingAppWidgetHostView;
|
||||
import com.android.launcher3.widget.WidgetManagerHelper;
|
||||
import com.android.launcher3.widget.dragndrop.AppWidgetHostViewDragListener;
|
||||
import com.android.systemui.plugins.shared.LauncherOverlayManager.LauncherOverlay;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -1527,6 +1528,9 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
|
||||
}
|
||||
}
|
||||
|
||||
if (drawable instanceof AppWidgetHostViewDrawable) {
|
||||
mDragController.addDragListener(new AppWidgetHostViewDragListener(mLauncher));
|
||||
}
|
||||
DragView dv = mDragController.startDrag(
|
||||
drawable,
|
||||
draggableView,
|
||||
|
||||
Reference in New Issue
Block a user