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

Commit 00885a8c authored by Eric Biggers's avatar Eric Biggers Committed by Android (Google) Code Review
Browse files

Merge "RESTRICT AUTOMERGE: Catch exceptions from setLockCredential()" into udc-qpr-dev

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

        unifyProfileCredentialIfRequested();