diff options
Diffstat (limited to 'app/src/main/java/com/zeapo/pwdstore/utils')
| -rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.kt | 2 | ||||
| -rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/utils/auth/AuthenticationResult.kt | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.kt b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.kt index 8947f43a..1cf8fea0 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.kt +++ b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.kt @@ -79,7 +79,7 @@ open class PasswordRepository protected constructor() { fun isGitRepo(): Boolean { if (repository != null) { // Check if remote exists - return repository!!.config.getSubsections("remote").isNotEmpty() ?: false + return repository!!.config.getSubsections("remote").isNotEmpty() } return false } diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/auth/AuthenticationResult.kt b/app/src/main/java/com/zeapo/pwdstore/utils/auth/AuthenticationResult.kt index b6f8de73..6bde6360 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/auth/AuthenticationResult.kt +++ b/app/src/main/java/com/zeapo/pwdstore/utils/auth/AuthenticationResult.kt @@ -9,10 +9,13 @@ import androidx.biometric.BiometricPrompt internal sealed class AuthenticationResult { internal data class Success(val cryptoObject: BiometricPrompt.CryptoObject?) : AuthenticationResult() + internal data class RecoverableError(val code: Int, val message: CharSequence) : AuthenticationResult() + internal data class UnrecoverableError(val code: Int, val message: CharSequence) : AuthenticationResult() + internal object Failure : AuthenticationResult() internal object Cancelled : AuthenticationResult() } |
