Merge "Allow BAL for confirm device credential activity when work profile apps are protected by PIN prompt." into udc-dev

This commit is contained in:
Nan Wu
2023-05-09 13:49:06 +00:00
committed by Android (Google) Code Review

View File

@@ -52,7 +52,12 @@ public class ConfirmDeviceCredentialUtils {
IntentSender intentSender = activity.getIntent().getParcelableExtra(Intent.EXTRA_INTENT); IntentSender intentSender = activity.getIntent().getParcelableExtra(Intent.EXTRA_INTENT);
if (intentSender != null) { if (intentSender != null) {
try { try {
activity.startIntentSenderForResult(intentSender, -1, null, 0, 0, 0); ActivityOptions activityOptions =
ActivityOptions.makeBasic()
.setPendingIntentBackgroundActivityStartMode(
ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED);
activity.startIntentSenderForResult(intentSender, -1, null, 0, 0, 0,
activityOptions.toBundle());
} catch (IntentSender.SendIntentException e) { } catch (IntentSender.SendIntentException e) {
/* ignore */ /* ignore */
} }