Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a75c8e7b authored by Reema Bajwa's avatar Reema Bajwa
Browse files

Create pending intent for specific user

Test: Built locally & deployed to device
Bug: 303835719

Change-Id: If03e146a069b9162d41eee26b7070ea52827fddf
parent a9730092
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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));
    }
}