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,11 +412,14 @@ class MainActivity : SimpleActivity() {
Note(null, title, "", TYPE_TEXT, path) Note(null, title, "", TYPE_TEXT, path)
} }
if (mNotes.any { it.title.equals(note.title, true) }) { NotesHelper(this).getNotes {
note.title += " (file)" mNotes = it
} if (mNotes.any { it.title.equals(note.title, true) }) {
note.title += " (file)"
}
addNewNote(note) addNewNote(note)
}
} }
} }