trim file extension at opening a checklist file

This commit is contained in:
tibbi 2018-12-09 20:10:52 +01:00
parent 21e2a282b8
commit 58d488b4a7
1 changed files with 1 additions and 1 deletions

View File

@ -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 {