Add remove shortcut to long press menu

Flag: com.android.launcher3.enable_long_press_remove_shortcut
Test: NexusLauncherImageTests
Bug: 419289205
Change-Id: I44f12a47f48179be36dea8052080fd61fff05357
This commit is contained in:
Federico Baron committed 2025-06-02 17:43:37 -07:00
1 parent a115ef8523
commit 9290666f24
7 files changed
+129 -16

No files matched your search

@@ -139,7 +139,7 @@ public class DeleteDropTarget extends ButtonDropTarget {
public void completeDrop(DragObject d) {
ItemInfo item = d.dragInfo;
if (canRemove(item)) {
mDropTargetHandler.onDeleteComplete(item);
mDropTargetHandler.onDeleteComplete(item, /* view */ null);
} else if (mText == getResources().getText(R.string.remove_drop_target_label)) {
Log.wtf("b/379606516", "If the drop target text is 'remove', then"
+ " users should always be able to delete the item from launcher's db."