Launch ConfirmDeviceCredentials on a new task stack

Fixes: 123951409
Test: Manually verified with biometricpromptdemo app.
Change-Id: I0d99a254f3e9a4da7dc329d51fe32ae6d38f75ed
This commit is contained in:
joshmccloskey
2019-03-19 16:31:04 -07:00
committed by Joshua Mccloskey
parent 0b4649213a
commit 2334f7af9d

View File

@@ -628,6 +628,9 @@ public class BiometricService extends SystemService {
null /* description */);
// Then give it the bundle to do magic behavior..
intent.putExtra(KeyguardManager.EXTRA_BIOMETRIC_PROMPT_BUNDLE, bundle);
// Create a new task with this activity located at the root.
intent.setFlags(
Intent.FLAG_ACTIVITY_MULTIPLE_TASK | Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
getContext().startActivityAsUser(intent, UserHandle.CURRENT);
});
return;