From 1edb20bb5960443ea2b51cba3851f2f2cdc2a273 Mon Sep 17 00:00:00 2001 From: VishnuSanal Date: Fri, 19 Apr 2024 12:55:55 +0530 Subject: [PATCH] chore: spotless --- .../filemanager/ui/dialogs/SftpConnectDialog.kt | 15 ++++++++------- .../preferencefragments/UiPrefsFragmentTest.kt | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/com/amaze/filemanager/ui/dialogs/SftpConnectDialog.kt b/app/src/main/java/com/amaze/filemanager/ui/dialogs/SftpConnectDialog.kt index 4c8368a909..828b108116 100644 --- a/app/src/main/java/com/amaze/filemanager/ui/dialogs/SftpConnectDialog.kt +++ b/app/src/main/java/com/amaze/filemanager/ui/dialogs/SftpConnectDialog.kt @@ -812,13 +812,14 @@ class SftpConnectDialog : DialogFragment() { prefix = getProtocolPrefixFromDropdownSelection(), connectionName = binding.connectionET.text.toString(), hostname = binding.ipET.text.toString(), - port = binding.portET.text.toString().let { - if (it.isEmpty() || it.isBlank()) { - SSH_DEFAULT_PORT - } else { - it.toInt() - } - }, + port = + binding.portET.text.toString().let { + if (it.isEmpty() || it.isBlank()) { + SSH_DEFAULT_PORT + } else { + it.toInt() + } + }, defaultPath = binding.defaultPathET.text.toString(), username = binding.usernameET.text.toString().urlEncoded(), password = diff --git a/app/src/test/java/com/amaze/filemanager/ui/fragments/preferencefragments/UiPrefsFragmentTest.kt b/app/src/test/java/com/amaze/filemanager/ui/fragments/preferencefragments/UiPrefsFragmentTest.kt index 42e166cbb9..03ad5817b1 100644 --- a/app/src/test/java/com/amaze/filemanager/ui/fragments/preferencefragments/UiPrefsFragmentTest.kt +++ b/app/src/test/java/com/amaze/filemanager/ui/fragments/preferencefragments/UiPrefsFragmentTest.kt @@ -55,7 +55,7 @@ import kotlin.random.Random Build.VERSION_CODES.KITKAT, Build.VERSION_CODES.N, Build.VERSION_CODES.P, - Build.VERSION_CODES.R + Build.VERSION_CODES.R, ], shadows = [ ShadowMultiDex::class,