Merge "ADD NPE check before shortcut key creation." into ub-launcher3-rvc-dev

This commit is contained in:
TreeHugger Robot
2020-06-11 23:00:05 +00:00
committed by Android (Google) Code Review
+1
View File
@@ -606,6 +606,7 @@ public final class Utilities {
outObj[0] = activityInfo;
return activityInfo.getFullResIcon(appState.getIconCache());
}
if (info.getIntent() == null || info.getIntent().getPackage() == null) return null;
List<ShortcutInfo> si = ShortcutKey.fromItemInfo(info)
.buildRequest(launcher)
.query(ShortcutRequest.ALL);