Show App Info when dragging widgets from the workspace.
Bug: 24190195 Change-Id: I65f67b7c1a1ae895035942aa97e40186ea5a206f
This commit is contained in:
1 parent
fcd19dfcd3
commit
ce86e194c4
2 files changed
+9
-4
No files matched your search
@@ -50,6 +50,8 @@ public class InfoDropTarget extends UninstallDropTarget {
|
||||
componentName = ((ShortcutInfo) info).intent.getComponent();
|
||||
} else if (info instanceof PendingAddItemInfo) {
|
||||
componentName = ((PendingAddItemInfo) info).componentName;
|
||||
} else if (info instanceof LauncherAppWidgetInfo) {
|
||||
componentName = ((LauncherAppWidgetInfo) info).providerName;
|
||||
}
|
||||
if (componentName != null) {
|
||||
launcher.startApplicationDetailsActivity(componentName, info.user);
|
||||
@@ -70,6 +72,6 @@ public class InfoDropTarget extends UninstallDropTarget {
|
||||
|
||||
public static boolean supportsDrop(Context context, ItemInfo info) {
|
||||
return info instanceof AppInfo || info instanceof ShortcutInfo
|
||||
|| info instanceof PendingAddItemInfo;
|
||||
|| info instanceof PendingAddItemInfo || info instanceof LauncherAppWidgetInfo;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user