mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-05-25 19:34:14 +02:00
trim file extension at opening a checklist file
This commit is contained in:
parent
21e2a282b8
commit
58d488b4a7
@ -353,7 +353,7 @@ class MainActivity : SimpleActivity() {
|
|||||||
val fileText = it.readText().trim()
|
val fileText = it.readText().trim()
|
||||||
val checklistItems = fileText.parseChecklistItems()
|
val checklistItems = fileText.parseChecklistItems()
|
||||||
if (checklistItems != null) {
|
if (checklistItems != null) {
|
||||||
val note = Note(null, it.absolutePath.getFilenameFromPath(), fileText, TYPE_CHECKLIST)
|
val note = Note(null, it.absolutePath.getFilenameFromPath().substringBeforeLast('.'), fileText, TYPE_CHECKLIST)
|
||||||
addNewNote(note)
|
addNewNote(note)
|
||||||
} else {
|
} else {
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user