From a8288463451e6078b01458e7de3ee5b86294bc36 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 2 Sep 2022 22:04:02 +0530 Subject: Upgrade ktfmt and setup automatic updates (#2103) --- .../app/passwordstore/util/git/operation/GitOperation.kt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'app/src') 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) { -- cgit v1.2.3