mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-23 03:50:07 +01:00
Removed lazy option
This commit is contained in:
parent
84620282a8
commit
3137d6273b
@ -77,7 +77,6 @@ class MainActivity : SimpleActivity() {
|
||||
private var searchIndex = 0
|
||||
private var searchMatches = emptyList<Int>()
|
||||
private var isSearchActive = false
|
||||
private val notesExporter by lazy { NotesExporter(this) }
|
||||
|
||||
private lateinit var searchQueryET: MyEditText
|
||||
private lateinit var searchPrevBtn: ImageView
|
||||
@ -883,6 +882,7 @@ class MainActivity : SimpleActivity() {
|
||||
private fun exportNotesTo(outputStream: OutputStream?) {
|
||||
toast(R.string.exporting)
|
||||
ensureBackgroundThread {
|
||||
val notesExporter = NotesExporter(this)
|
||||
notesExporter.exportNotes(outputStream) {
|
||||
val toastId = when (it) {
|
||||
NotesExporter.ExportResult.EXPORT_OK -> R.string.exporting_successful
|
||||
|
Loading…
x
Reference in New Issue
Block a user