store the file path in db, if a file was open
This commit is contained in:
parent
8ae1a99379
commit
6311a195c2
|
@ -178,7 +178,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
|
||||||
toast(R.string.title_taken)
|
toast(R.string.title_taken)
|
||||||
} else {
|
} else {
|
||||||
val content = file.readText()
|
val content = file.readText()
|
||||||
val note = Note(0, filename, content, TYPE_NOTE)
|
val note = Note(0, filename, content, TYPE_NOTE, it)
|
||||||
addNewNote(note)
|
addNewNote(note)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue