mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-20 18:27:26 +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)
|
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…
x
Reference in New Issue
Block a user