Skip to content
Snippets Groups Projects
Commit 55428889 authored by Reema Bajwa's avatar Reema Bajwa Committed by Cherrypicker Worker
Browse files

Create pending intent for specific user

Test: Built locally & deployed to device
Bug: 303835719
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a75c8e7b68f9d3ff0eac572190fe2894a768345c)
Merged-In: If03e146a069b9162d41eee26b7070ea52827fddf
Change-Id: If03e146a069b9162d41eee26b7070ea52827fddf
parent c8182fd0
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@ import android.os.Handler;
import android.os.IBinder;
import android.os.Looper;
import android.os.ResultReceiver;
import android.os.UserHandle;
import android.service.credentials.CredentialProviderInfoFactory;
import android.util.Slog;
......@@ -171,7 +172,9 @@ public class CredentialManagerUi {
.setAction(UUID.randomUUID().toString());
//TODO: Create unique pending intent using request code and cancel any pre-existing pending
// intents
return PendingIntent.getActivity(
mContext, /*requestCode=*/0, intent, PendingIntent.FLAG_IMMUTABLE);
return PendingIntent.getActivityAsUser(
mContext, /*requestCode=*/0, intent,
PendingIntent.FLAG_IMMUTABLE, /*options=*/null,
UserHandle.of(mUserId));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment