tasks cannot be shared yet, show an error at attempt

This commit is contained in:
tibbi 2022-02-24 21:34:21 +01:00
parent 113963cee3
commit 4a11d05785
1 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,10 @@ fun BaseSimpleActivity.shareEvents(ids: List<Long>) {
}
val events = eventsDB.getEventsWithIds(ids) as ArrayList<Event>
if (events.isEmpty()) {
toast(R.string.no_items_found)
}
getFileOutputStream(file.toFileDirItem(this), true) {
IcsExporter().exportEvents(this, it, events, false) {
if (it == IcsExporter.ExportResult.EXPORT_OK) {