Make com.android.launcher3.action.LAUNCH intent explicit b/27967359

am: f9dc857

* commit 'f9dc857a0e49750fefd88d4201ee74e1b3cfee3d':
  Make com.android.launcher3.action.LAUNCH intent explicit b/27967359

Change-Id: Iad2d0fe4662bae70ea3378fad82739a1df723ff6
This commit is contained in:
Hyunyoung Song
2016-04-08 18:07:04 +00:00
committed by android-build-merger
2 changed files with 11 additions and 1 deletions
+7 -1
View File
@@ -132,6 +132,7 @@ public class Stats {
final String flat = intent.toUri(0);
Intent broadcastIntent = new Intent(ACTION_LAUNCH).putExtra(EXTRA_INTENT, flat);
if (shortcut != null) {
broadcastIntent.putExtra(EXTRA_CONTAINER, shortcut.container)
.putExtra(EXTRA_SCREEN, shortcut.screenId)
@@ -142,6 +143,11 @@ public class Stats {
Bundle sourceExtras = LaunchSourceUtils.createSourceData();
LaunchSourceUtils.populateSourceDataFromAncestorProvider(v, sourceExtras);
broadcastIntent.putExtra(EXTRA_SOURCE, sourceExtras);
mLauncher.sendBroadcast(broadcastIntent, mLaunchBroadcastPermission);
String[] packages = mLauncher.getResources().getStringArray(R.array.launch_broadcast_targets);
for(String p: packages) {
broadcastIntent.setPackage(p);
mLauncher.sendBroadcast(broadcastIntent, mLaunchBroadcastPermission);
}
}
}