feat: Reimplement placing widget on hotseat (#7272)
This commit is contained in:
1 parent
9d299a13c1
commit
6d084bfa43
1 file changed
+4
-2
@@ -2680,6 +2680,7 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
|
||||
}
|
||||
}
|
||||
|
||||
/** LC-Note: isDragWidget() being unused is intended to make placing widget on dock possible */
|
||||
private boolean isDragWidget(DragObject d) {
|
||||
return (d.dragInfo instanceof LauncherAppWidgetInfo ||
|
||||
d.dragInfo instanceof PendingAddWidgetInfo);
|
||||
@@ -2847,9 +2848,10 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
|
||||
}
|
||||
|
||||
private boolean shouldUseHotseatAsDropLayout(DragObject dragObject) {
|
||||
// LC-Note: isDragWidget(dragObject) being removed is intended to make placing widget on dock possible
|
||||
|
||||
if (mLauncher.getHotseat() == null
|
||||
|| mLauncher.getHotseat().getShortcutsAndWidgets() == null
|
||||
|| isDragWidget(dragObject)) {
|
||||
|| mLauncher.getHotseat().getShortcutsAndWidgets() == null) {
|
||||
return false;
|
||||
}
|
||||
View hotseatIcons = mLauncher.getHotseat().getPagedView();
|
||||
|
||||
Reference in new issue
Block a user