Snap for 10628727 from 25a1f8429c to udc-qpr1-release
Change-Id: I1e8ff4b1fe3cd5197d75685cdd1e537dbebd76ec
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