mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-06-11 18:19:15 -04:00
Used lines extension instead of split
Co-authored-by: Naveen Singh <36371707+naveensingh@users.noreply.github.com>
This commit is contained in:
@@ -68,7 +68,7 @@ class NewChecklistItemDialog(val activity: Activity, callback: (titles: ArrayLis
|
||||
}
|
||||
}
|
||||
titleEditText.onTextChangeListener { text ->
|
||||
val lines = text.split("\n").filter { it.trim().isNotEmpty() }
|
||||
val lines = text.lines().filter { it.trim().isNotEmpty() }
|
||||
if (lines.size > 1) {
|
||||
lines.forEachIndexed { i, line ->
|
||||
if (i == 0) {
|
||||
|
||||
Reference in New Issue
Block a user