Merge "Added error message to error state." into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
1d6b6cef69
@@ -67,6 +67,7 @@ object Util {
|
|||||||
return FingerEnrollState.EnrollError(
|
return FingerEnrollState.EnrollError(
|
||||||
errTitle,
|
errTitle,
|
||||||
errString,
|
errString,
|
||||||
|
this,
|
||||||
this == FINGERPRINT_ERROR_UNABLE_TO_PROCESS,
|
this == FINGERPRINT_ERROR_UNABLE_TO_PROCESS,
|
||||||
this == FINGERPRINT_ERROR_CANCELED,
|
this == FINGERPRINT_ERROR_CANCELED,
|
||||||
)
|
)
|
||||||
|
@@ -35,10 +35,13 @@ sealed class FingerEnrollState {
|
|||||||
data class EnrollHelp(@StringRes val helpMsgId: Int, val helpString: String) :
|
data class EnrollHelp(@StringRes val helpMsgId: Int, val helpString: String) :
|
||||||
FingerEnrollState()
|
FingerEnrollState()
|
||||||
|
|
||||||
/** Represents that an unrecoverable error has been encountered and the operation is complete. */
|
/** Represents that an unrecoverable error has been encountered and the operation is complete.
|
||||||
|
* Note that errorId is the raw error id from [FingerprintManager]
|
||||||
|
*/
|
||||||
data class EnrollError(
|
data class EnrollError(
|
||||||
@StringRes val errTitle: Int,
|
@StringRes val errTitle: Int,
|
||||||
@StringRes val errString: Int,
|
@StringRes val errString: Int,
|
||||||
|
val errorId: Int,
|
||||||
val shouldRetryEnrollment: Boolean,
|
val shouldRetryEnrollment: Boolean,
|
||||||
val isCancelled: Boolean,
|
val isCancelled: Boolean,
|
||||||
) : FingerEnrollState()
|
) : FingerEnrollState()
|
||||||
|
Reference in New Issue
Block a user