mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-24 12:30: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 searchIndex = 0
|
||||||
private var searchMatches = emptyList<Int>()
|
private var searchMatches = emptyList<Int>()
|
||||||
private var isSearchActive = false
|
private var isSearchActive = false
|
||||||
private val notesExporter by lazy { NotesExporter(this) }
|
|
||||||
|
|
||||||
private lateinit var searchQueryET: MyEditText
|
private lateinit var searchQueryET: MyEditText
|
||||||
private lateinit var searchPrevBtn: ImageView
|
private lateinit var searchPrevBtn: ImageView
|
||||||
@ -883,6 +882,7 @@ class MainActivity : SimpleActivity() {
|
|||||||
private fun exportNotesTo(outputStream: OutputStream?) {
|
private fun exportNotesTo(outputStream: OutputStream?) {
|
||||||
toast(R.string.exporting)
|
toast(R.string.exporting)
|
||||||
ensureBackgroundThread {
|
ensureBackgroundThread {
|
||||||
|
val notesExporter = NotesExporter(this)
|
||||||
notesExporter.exportNotes(outputStream) {
|
notesExporter.exportNotes(outputStream) {
|
||||||
val toastId = when (it) {
|
val toastId = when (it) {
|
||||||
NotesExporter.ExportResult.EXPORT_OK -> R.string.exporting_successful
|
NotesExporter.ExportResult.EXPORT_OK -> R.string.exporting_successful
|
||||||
|
Loading…
x
Reference in New Issue
Block a user