mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-13 15:02:05 +02:00
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)
|
||||
} else {
|
||||
val content = file.readText()
|
||||
val note = Note(0, filename, content, TYPE_NOTE)
|
||||
val note = Note(0, filename, content, TYPE_NOTE, it)
|
||||
addNewNote(note)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user