mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 10:18:20 +00:00
Support drag/drop on search results
Bug: 199341710 Test: manual Change-Id: I9879c2a3769d4f930ab0289d2f26e4757971549d
This commit is contained in:
@@ -46,6 +46,8 @@ import com.android.launcher3.R;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.folder.Folder;
|
||||
import com.android.launcher3.folder.FolderIcon;
|
||||
import com.android.launcher3.logging.InstanceId;
|
||||
import com.android.launcher3.logging.InstanceIdSequence;
|
||||
import com.android.launcher3.logging.StatsLogManager;
|
||||
import com.android.launcher3.model.data.AppInfo;
|
||||
import com.android.launcher3.model.data.FolderInfo;
|
||||
@@ -314,6 +316,12 @@ public class ItemClickHandler {
|
||||
intent = new Intent(intent);
|
||||
intent.setPackage(null);
|
||||
}
|
||||
if ((si.options & WorkspaceItemInfo.FLAG_START_FOR_RESULT) != 0) {
|
||||
launcher.startActivityForResult(item.getIntent(), 0);
|
||||
InstanceId instanceId = new InstanceIdSequence().newInstanceId();
|
||||
launcher.logAppLaunch(launcher.getStatsLogManager(), item, instanceId);
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (v != null && launcher.supportsAdaptiveIconAnimation(v)) {
|
||||
// Preload the icon to reduce latency b/w swapping the floating view with the original.
|
||||
|
||||
Reference in New Issue
Block a user