Upgrade ktfmt to 0.33 (#1753)
* build: upgrade ktfmt to 0.33 * all: reformat with ktfmt 0.33
This commit is contained in:
parent
0af4e2920c
commit
778834d5e4
4 changed files with 25 additions and 26 deletions
|
@ -178,8 +178,7 @@ class AutofillFilterView : AppCompatActivity() {
|
|||
setText(initialSearch, TextView.BufferType.EDITABLE)
|
||||
addTextChangedListener { updateSearch() }
|
||||
}
|
||||
origin.text =
|
||||
buildSpannedString {
|
||||
origin.text = buildSpannedString {
|
||||
append(getString(R.string.oreo_autofill_select_and_fill_into))
|
||||
append("\n")
|
||||
bold { append(formOrigin.getPrettyIdentifier(applicationContext, untrusted = true)) }
|
||||
|
|
|
@ -33,8 +33,7 @@ class PasswordSettings(private val activity: FragmentActivity) : SettingsProvide
|
|||
}
|
||||
editText(PreferenceKeys.GENERAL_SHOW_TIME) {
|
||||
titleRes = R.string.pref_clipboard_timeout_title
|
||||
summaryProvider =
|
||||
{ timeout ->
|
||||
summaryProvider = { timeout ->
|
||||
activity.getString(R.string.pref_clipboard_timeout_summary, timeout ?: "45")
|
||||
}
|
||||
textInputType = InputType.TYPE_CLASS_NUMBER
|
||||
|
|
|
@ -76,8 +76,7 @@ class OpenKeychainKeyProvider private constructor(val activity: ContinuationCont
|
|||
}
|
||||
|
||||
private suspend fun prepare() {
|
||||
sshServiceApi =
|
||||
suspendCoroutine { cont ->
|
||||
sshServiceApi = suspendCoroutine { cont ->
|
||||
sshServiceConnection.connect(
|
||||
object : SshAuthenticationConnection.OnBound {
|
||||
override fun onBound(sshAgent: ISshAuthenticationService) {
|
||||
|
|
|
@ -5,14 +5,16 @@
|
|||
|
||||
plugins { id("com.diffplug.spotless") }
|
||||
|
||||
val KTFMT_VERSION = "0.33"
|
||||
|
||||
spotless {
|
||||
kotlin {
|
||||
ktfmt().googleStyle()
|
||||
ktfmt(KTFMT_VERSION).googleStyle()
|
||||
target("**/*.kt")
|
||||
targetExclude("**/build/")
|
||||
}
|
||||
kotlinGradle {
|
||||
ktfmt().googleStyle()
|
||||
ktfmt(KTFMT_VERSION).googleStyle()
|
||||
target("**/*.kts")
|
||||
targetExclude("**/build/")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue