mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-11 22:20:07 +01: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 checklistItems = fileText.parseChecklistItems()
|
||||
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)
|
||||
} else {
|
||||
runOnUiThread {
|
||||
|
Loading…
x
Reference in New Issue
Block a user