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