Skip to content

Commit cb3278e

Browse files
Aga-Cnaveensingh
andauthored
Used lines extension instead of split
Co-authored-by: Naveen Singh <[email protected]>
1 parent 70b8219 commit cb3278e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/org/fossify/notes/dialogs/NewChecklistItemDialog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class NewChecklistItemDialog(val activity: Activity, callback: (titles: ArrayLis
6868
}
6969
}
7070
titleEditText.onTextChangeListener { text ->
71-
val lines = text.split("\n").filter { it.trim().isNotEmpty() }
71+
val lines = text.lines().filter { it.trim().isNotEmpty() }
7272
if (lines.size > 1) {
7373
lines.forEachIndexed { i, line ->
7474
if (i == 0) {

0 commit comments

Comments
 (0)