mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-17 08:47:22 +02:00
fix some threading issues at importing notes via View intents
This commit is contained in:
parent
cf12439771
commit
a66ac61f98
@ -412,6 +412,8 @@ class MainActivity : SimpleActivity() {
|
|||||||
Note(null, title, "", TYPE_TEXT, path)
|
Note(null, title, "", TYPE_TEXT, path)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NotesHelper(this).getNotes {
|
||||||
|
mNotes = it
|
||||||
if (mNotes.any { it.title.equals(note.title, true) }) {
|
if (mNotes.any { it.title.equals(note.title, true) }) {
|
||||||
note.title += " (file)"
|
note.title += " (file)"
|
||||||
}
|
}
|
||||||
@ -419,6 +421,7 @@ class MainActivity : SimpleActivity() {
|
|||||||
addNewNote(note)
|
addNewNote(note)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun tryOpenFolder() {
|
private fun tryOpenFolder() {
|
||||||
handlePermission(PERMISSION_READ_STORAGE) {
|
handlePermission(PERMISSION_READ_STORAGE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user