Bundle bundle = intent.getBundleExtra(Consts.EXTRA_BUNDLE);
if (bundle == null)
return;
String pkg1 = bundle.getString(ShortcutActivity.INTENT_EXTRA_PACKAGE_1);
String pkg2 = bundle.getString(ShortcutActivity.INTENT_EXTRA_PACKAGE_2);
<BUG>if (pkg1 == null || pkg2 == null || pkg1.isEmpty() || pkg2.isEmpty())

return;
else
</BUG>
context.startActivity(ShortcutActivity.createShortcutIntent(context, pkg1, pkg2));

Bundle bundle = intent.getBundleExtra(Consts.EXTRA_BUNDLE);
if (bundle == null)
return;
String pkg1 = bundle.getString(ShortcutActivity.INTENT_EXTRA_PACKAGE_1);
String pkg2 = bundle.getString(ShortcutActivity.INTENT_EXTRA_PACKAGE_2);
if (pkg1 == null || pkg2 == null || pkg1.isEmpty() || pkg2.isEmpty()) {
Intent intent1 = bundle.getParcelable(ShortcutActivity.INTENT_EXTRA_1);
Intent intent2 = bundle.getParcelable(ShortcutActivity.INTENT_EXTRA_2);
if (intent1 == null || intent2 == null)
return;
context.startActivity(ShortcutActivity.createShortcutIntent(context, intent1, intent2));
} else
context.startActivity(ShortcutActivity.createShortcutIntent(context, pkg1, pkg2));
