store the file path in db, if a file was open

This commit is contained in:
tibbi 2017-03-08 20:08:43 +01:00
parent 8ae1a99379
commit 6311a195c2
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
toast(R.string.title_taken)
} else {
val content = file.readText()
val note = Note(0, filename, content, TYPE_NOTE)
val note = Note(0, filename, content, TYPE_NOTE, it)
addNewNote(note)
}
}