make sure event exporting is happening on a background thread

This commit is contained in:
tibbi 2018-12-03 11:16:17 +01:00
parent 83d3f3a724
commit 614ed16c91

View File

@ -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()
} }
} }