mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-15 07:52:02 +02: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)
|
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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user