Prevent the creation of Shorcuts with null intents (issue 5629292)
Change-Id: I54fbad2d4af27c6d8fc0d79c33e890298a3db4dc
This commit is contained in:
1 parent
d016015c23
commit
d919882006
4 files changed
+22
-4
No files matched your search
@@ -2455,7 +2455,9 @@ public class Workspace extends SmoothPagedView
|
||||
if (isShortcut) {
|
||||
final Intent intent = data.getItemAt(index).getIntent();
|
||||
Object info = model.infoFromShortcutIntent(mContext, intent, data.getIcon());
|
||||
onDropExternal(new int[] { x, y }, info, layout, false);
|
||||
if (info != null) {
|
||||
onDropExternal(new int[] { x, y }, info, layout, false);
|
||||
}
|
||||
} else {
|
||||
if (widgets.size() == 1) {
|
||||
// If there is only one item, then go ahead and add and configure
|
||||
|
||||
Reference in new issue
Block a user