Merge "Add a generic error message for missing vendor error strings." into sc-dev am: 922fe0da54 am: 8059de7fdb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15564960 Change-Id: I2ba217fc3796f6117571867cc0c3b39dd74d4fb4
This commit is contained in:
@@ -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);
|
Slog.w(TAG, "Invalid error message: " + errMsg + ", " + vendorCode);
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
Slog.w(TAG, "Invalid error message: " + errMsg + ", " + vendorCode);
|
||||||
return null;
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user