mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-11 01:10:50 +01:00
make sure event exporting is happening on a background thread
This commit is contained in:
parent
83d3f3a724
commit
614ed16c91
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user