Merge "Allow multi users for building permission transfer intent"
This commit is contained in:
committed by
Android (Google) Code Review
commit
7d57681e96
@@ -150,8 +150,9 @@ public class SystemDataTransferProcessor {
|
||||
// Create a PendingIntent
|
||||
final long token = Binder.clearCallingIdentity();
|
||||
try {
|
||||
return PendingIntent.getActivity(mContext, /*requestCode */ associationId, intent,
|
||||
FLAG_ONE_SHOT | FLAG_CANCEL_CURRENT | FLAG_IMMUTABLE);
|
||||
return PendingIntent.getActivityAsUser(mContext, /*requestCode */ associationId, intent,
|
||||
FLAG_ONE_SHOT | FLAG_CANCEL_CURRENT | FLAG_IMMUTABLE, /* options= */ null,
|
||||
UserHandle.CURRENT);
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(token);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user