Add ability to finish() ConfirmDeviceCredential if it loses foreground am: e27a304b97 am: 7baab69bdc

am: bdebaf4396

Change-Id: I34626608c014668887e33da40b80585aa5e66d7c
This commit is contained in:
Kevin Chyn
2019-07-26 18:46:38 -07:00
committed by android-build-merger
5 changed files with 47 additions and 23 deletions

View File

@@ -179,7 +179,7 @@ public class FaceSettings extends DashboardFragment {
mConfirmingPassword = true;
if (!helper.launchConfirmationActivity(CONFIRM_REQUEST,
getString(R.string.security_settings_face_preference_title),
null, null, challenge, mUserId)) {
null, null, challenge, mUserId, true /* foregroundOnly */)) {
Log.e(TAG, "Password not set");
finish();
}