aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-09-02 22:04:02 +0530
committerGitHub <noreply@github.com>2022-09-02 16:34:02 +0000
commita8288463451e6078b01458e7de3ee5b86294bc36 (patch)
tree19808347306f3a73d9d03ac2479f24a1f0305cca /app/src/main/java
parent903f11c30352ecc551d25a7e43e81d8333ea048e (diff)
Upgrade ktfmt and setup automatic updates (#2103)
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt12
1 files changed, 9 insertions, 3 deletions
diff --git a/app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt b/app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt
index 02cea621..1a4a62df 100644
--- a/app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt
+++ b/app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt
@@ -155,10 +155,14 @@ abstract class GitOperation(protected val callingActivity: FragmentActivity) {
.setTitle(callingActivity.resources.getString(R.string.ssh_preferences_dialog_title))
.setPositiveButton(
callingActivity.resources.getString(R.string.ssh_preferences_dialog_import)
- ) { _, _ -> getSshKey(false) }
+ ) { _, _ ->
+ getSshKey(false)
+ }
.setNegativeButton(
callingActivity.resources.getString(R.string.ssh_preferences_dialog_generate)
- ) { _, _ -> getSshKey(true) }
+ ) { _, _ ->
+ getSshKey(true)
+ }
.setNeutralButton(callingActivity.resources.getString(R.string.dialog_cancel)) { _, _ ->
// Finish the blank GitActivity so user doesn't have to press back
callingActivity.finish()
@@ -177,7 +181,9 @@ abstract class GitOperation(protected val callingActivity: FragmentActivity) {
BiometricAuthenticator.authenticate(
callingActivity,
R.string.biometric_prompt_title_ssh_auth
- ) { result -> if (result !is Failure) cont.resume(result) }
+ ) { result ->
+ if (result !is Failure) cont.resume(result)
+ }
}
}
when (result) {