Merge "RESTRICT AUTOMERGE: Catch exceptions from setLockCredential()" into udc-qpr-dev
This commit is contained in:
@@ -107,7 +107,12 @@ public class SaveAndFinishWorker extends Fragment {
|
|||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
Pair<Boolean, Intent> saveAndVerifyInBackground() {
|
Pair<Boolean, Intent> saveAndVerifyInBackground() {
|
||||||
final int userId = mUserId;
|
final int userId = mUserId;
|
||||||
if (!mUtils.setLockCredential(mChosenCredential, mCurrentCredential, userId)) {
|
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);
|
return Pair.create(false, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user