Merge "Don't show FP error canceled message" into pi-dev

This commit is contained in:
TreeHugger Robot
2018-03-27 03:28:27 +00:00
committed by Android (Google) Code Review

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);
}