fix some threading issues at importing notes via View intents

This commit is contained in:
tibbi 2018-12-09 20:31:59 +01:00
parent cf12439771
commit a66ac61f98

View File

@ -412,6 +412,8 @@ class MainActivity : SimpleActivity() {
Note(null, title, "", TYPE_TEXT, path)
}
NotesHelper(this).getNotes {
mNotes = it
if (mNotes.any { it.title.equals(note.title, true) }) {
note.title += " (file)"
}
@ -419,6 +421,7 @@ class MainActivity : SimpleActivity() {
addNewNote(note)
}
}
}
private fun tryOpenFolder() {
handlePermission(PERMISSION_READ_STORAGE) {