Snap for 10628727 from 25a1f8429c to udc-qpr1-release

Change-Id: I1e8ff4b1fe3cd5197d75685cdd1e537dbebd76ec
This commit is contained in:
Android Build Coastguard Worker
2023-08-08 23:19:35 +00:00

View File

@@ -107,9 +107,14 @@ public class SaveAndFinishWorker extends Fragment {
@VisibleForTesting @VisibleForTesting
Pair<Boolean, Intent> saveAndVerifyInBackground() { Pair<Boolean, Intent> saveAndVerifyInBackground() {
final int userId = mUserId; final int userId = mUserId;
try {
if (!mUtils.setLockCredential(mChosenCredential, mCurrentCredential, userId)) { if (!mUtils.setLockCredential(mChosenCredential, mCurrentCredential, userId)) {
return Pair.create(false, null); return Pair.create(false, null);
} }
} catch (RuntimeException e) {
Log.e(TAG, "Failed to set lockscreen credential", e);
return Pair.create(false, null);
}
unifyProfileCredentialIfRequested(); unifyProfileCredentialIfRequested();