diff options
| author | Harsh Shandilya <me@msfjarvis.dev> | 2020-03-20 14:13:54 +0530 |
|---|---|---|
| committer | Aditya Wasan <adityawasan55@gmail.com> | 2020-03-20 14:48:53 +0530 |
| commit | 793abd690d8aa68ba3a97f4465a55560ac7dbb1f (patch) | |
| tree | 8f59ff469a1e292c2779fdc44a0f229fcb967c58 /app/src/main/java/com/zeapo/pwdstore/utils | |
| parent | 0aeb51efa444223cddcb3a89f66f2410675b47af (diff) | |
| download | HardenedPass-793abd690d8aa68ba3a97f4465a55560ac7dbb1f.tar.gz HardenedPass-793abd690d8aa68ba3a97f4465a55560ac7dbb1f.zip | |
Codestyle cleanup
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
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() } |
