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

Commit 922fe0da authored by Joe Bolinger's avatar Joe Bolinger Committed by Android (Google) Code Review
Browse files

Merge "Add a generic error message for missing vendor error strings." into sc-dev

parents 0fa71fcc 5d5d9eb8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -790,6 +790,11 @@ public class FaceManager implements BiometricAuthenticator, BiometricFaceConstan
                }
            }
        }

        // This is used as a last resort in case a vendor string is missing
        // It should not happen for anything other than FACE_ERROR_VENDOR, but
        // warn and use the default if all else fails.
        // TODO(b/196639965): update string
        Slog.w(TAG, "Invalid error message: " + errMsg + ", " + vendorCode);
        return "";
    }
+6 −1
Original line number Diff line number Diff line
@@ -1386,8 +1386,13 @@ public class FingerprintManager implements BiometricAuthenticator, BiometricFing
                }
            }
        }

        // This is used as a last resort in case a vendor string is missing
        // It should not happen for anything other than FINGERPRINT_ERROR_VENDOR, but
        // warn and use the default if all else fails.
        // TODO(b/196639965): update string
        Slog.w(TAG, "Invalid error message: " + errMsg + ", " + vendorCode);
        return null;
        return "";
    }

    /**