Merge branch 'heads/android-14.0.0_r18' into 14-dev

This commit is contained in:
MrSluffy committed 2023-12-16 17:18:13 +08:00
1 parent 32700b0100
commit cc8f9828ab
756 files changed
+23785 -12235

No files matched your search

@@ -94,10 +94,7 @@ public class LauncherDelegate {
// folder
CellLayout cellLayout = mLauncher.getCellLayout(info.container,
mLauncher.getCellPosMapper().mapModelToPresenter(info).screenId);
if (cellLayout == null) {
return;
}
finalItem = info.contents.remove(0);
finalItem = info.contents.remove(0);
newIcon = mLauncher.createShortcut(cellLayout, finalItem);
mLauncher.getModelWriter().addOrMoveItemInDatabase(finalItem,
info.container, info.screenId, info.cellX, info.cellY);
@@ -112,7 +109,7 @@ public class LauncherDelegate {
if (newIcon != null) {
// We add the child after removing the folder to prevent both from existing
// at the same time in the CellLayout. We need to add the new item with
// at the same time in the CellLayout. We need to add the new item with
// addInScreenFromBind() to ensure that hotseat items are placed correctly.
mLauncher.getWorkspace().addInScreenFromBind(newIcon, info);
@@ -139,7 +136,6 @@ public class LauncherDelegate {
return true;
}
boolean interceptOutsideTouch(MotionEvent ev, BaseDragLayer dl, Folder folder) {
if (mLauncher.getAccessibilityDelegate().isInAccessibleDrag()) {
// Do not close the container if in drag and drop.
@@ -175,7 +171,8 @@ public class LauncherDelegate {
}
@Override
void beginDragShared(View child, DragSource source, DragOptions options) { }
void beginDragShared(View child, DragSource source, DragOptions options) {
}
@Override
ModelWriter getModelWriter() {
@@ -187,7 +184,8 @@ public class LauncherDelegate {
}
@Override
void forEachVisibleWorkspacePage(Consumer<View> callback) { }
void forEachVisibleWorkspacePage(Consumer<View> callback) {
}
@Override
Launcher getLauncher() {