mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-02-10 00:10:48 +01:00
fix some threading issues at importing notes via View intents
This commit is contained in:
parent
cf12439771
commit
a66ac61f98
@ -412,11 +412,14 @@ class MainActivity : SimpleActivity() {
|
||||
Note(null, title, "", TYPE_TEXT, path)
|
||||
}
|
||||
|
||||
if (mNotes.any { it.title.equals(note.title, true) }) {
|
||||
note.title += " (file)"
|
||||
}
|
||||
NotesHelper(this).getNotes {
|
||||
mNotes = it
|
||||
if (mNotes.any { it.title.equals(note.title, true) }) {
|
||||
note.title += " (file)"
|
||||
}
|
||||
|
||||
addNewNote(note)
|
||||
addNewNote(note)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user