Support drag/drop on search results

Bug: 199341710
Test: manual
Change-Id: I9879c2a3769d4f930ab0289d2f26e4757971549d
This commit is contained in:
sfufa@google.com
2021-09-24 08:55:48 -07:00
parent fd326d1a53
commit ca76de0e6e
9 changed files with 121 additions and 22 deletions

View File

@@ -67,6 +67,11 @@ public class WorkspaceItemInfo extends ItemInfoWithIcon {
*/
public static final int FLAG_SUPPORTS_WEB_UI = 1 << 3;
/**
*
*/
public static final int FLAG_START_FOR_RESULT = 1 << 4;
/**
* The intent used to start the application.
*/
@@ -92,6 +97,8 @@ public class WorkspaceItemInfo extends ItemInfoWithIcon {
*/
@NonNull private String[] personKeys = Utilities.EMPTY_STRING_ARRAY;
public int options;
public WorkspaceItemInfo() {
itemType = LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT;
@@ -127,6 +134,7 @@ public class WorkspaceItemInfo extends ItemInfoWithIcon {
super.onAddToDatabase(writer);
writer.put(Favorites.TITLE, title)
.put(Favorites.INTENT, getIntent())
.put(Favorites.OPTIONS, options)
.put(Favorites.RESTORED, status);
if (!usingLowResIcon()) {