From e771818fd5ecf9ada5329fb27db4c6edd9253f41 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 3 Mar 2020 17:08:21 +0100 Subject: [PATCH] set continuation indent size to 8 in Android Studio --- .editorconfig | 2 ++ .../notes/pro/fragments/ChecklistFragment.kt | 18 +++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.editorconfig b/.editorconfig index b762e804..5e3c7039 100644 --- a/.editorconfig +++ b/.editorconfig @@ -17,3 +17,5 @@ insert_final_newline = true charset = utf-8 indent_style = space indent_size = 4 +continuation_indent_size = 8 + diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/ChecklistFragment.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/ChecklistFragment.kt index 42752534..645f3b14 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/ChecklistFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/ChecklistFragment.kt @@ -62,7 +62,7 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener { try { val checklistItemType = object : TypeToken>() {}.type items = Gson().fromJson>(storedNote.value, checklistItemType) - ?: ArrayList(1) + ?: ArrayList(1) } catch (e: Exception) { migrateCheckListOnFailure(storedNote) } @@ -82,9 +82,9 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener { note.value.split("\n").map { it.trim() }.filter { it.isNotBlank() }.forEachIndexed { index, value -> items.add(ChecklistItem( - id = index, - title = value, - isDone = false + id = index, + title = value, + isDone = false )) } @@ -141,11 +141,11 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener { } ChecklistAdapter( - activity = activity as SimpleActivity, - items = items, - listener = this, - recyclerView = view.checklist_list, - showIcons = true + activity = activity as SimpleActivity, + items = items, + listener = this, + recyclerView = view.checklist_list, + showIcons = true ) { item -> val clickedNote = item as ChecklistItem clickedNote.isDone = !clickedNote.isDone