mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
make sure event exporting is happening on a background thread
This commit is contained in:
@ -28,6 +28,7 @@ class IcsExporter {
|
|||||||
return@getFileOutputStream
|
return@getFileOutputStream
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Thread {
|
||||||
if (showExportingToast) {
|
if (showExportingToast) {
|
||||||
activity.toast(R.string.exporting)
|
activity.toast(R.string.exporting)
|
||||||
}
|
}
|
||||||
@ -71,6 +72,7 @@ class IcsExporter {
|
|||||||
eventsFailed > 0 -> EXPORT_PARTIAL
|
eventsFailed > 0 -> EXPORT_PARTIAL
|
||||||
else -> EXPORT_OK
|
else -> EXPORT_OK
|
||||||
})
|
})
|
||||||
|
}.start()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user