Merge "Don't show FP error canceled message" into pi-dev am: 2c6ea60711

am: 674902b537

Change-Id: I9fa98d943cafa514b4205a39feeeb07fd9dcbfcb
This commit is contained in:
Kevin Chyn
2018-03-27 04:47:36 +00:00
committed by android-build-merger

View File

@@ -79,6 +79,10 @@ public class FingerprintUiHelper extends FingerprintManager.AuthenticationCallba
@Override
public void onAuthenticationError(int errMsgId, CharSequence errString) {
if (errMsgId == FingerprintManager.FINGERPRINT_ERROR_CANCELED) {
// Only happens if we get preempted by another activity. Ignored.
return;
}
showError(errString);
setFingerprintIconVisibility(false);
}