From d56b4d1db34bd6928f599e7e9a7321c2a81cb995 Mon Sep 17 00:00:00 2001 From: Adam Powell Date: Sun, 30 Sep 2012 18:27:31 -0700 Subject: [PATCH] Construct a task stack for picking a wifi network from notification Bug 7001327 Change-Id: I5a79e6933cd33386cd0aa4df626f15902deedd67 --- core/java/android/app/PendingIntent.java | 25 +++++++++++++++++++ core/java/android/app/TaskStackBuilder.java | 14 +++++++++++ .../java/com/android/server/WifiService.java | 8 +++--- 3 files changed, 44 insertions(+), 3 deletions(-) diff --git a/core/java/android/app/PendingIntent.java b/core/java/android/app/PendingIntent.java index 9d5746734b855..d36d99deeb444 100644 --- a/core/java/android/app/PendingIntent.java +++ b/core/java/android/app/PendingIntent.java @@ -394,6 +394,31 @@ public final class PendingIntent implements Parcelable { return null; } + /** + * @hide + * Note that UserHandle.CURRENT will be interpreted at the time the + * activity is started, not when the pending intent is created. + */ + public static PendingIntent getActivitiesAsUser(Context context, int requestCode, + Intent[] intents, int flags, Bundle options, UserHandle user) { + String packageName = context.getPackageName(); + String[] resolvedTypes = new String[intents.length]; + for (int i=0; i