diff --git a/app/build.gradle b/app/build.gradle index 6229c2848..3140c84b4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -70,7 +70,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:58574dd952' + implementation 'com.github.SimpleMobileTools:Simple-Commons:271f2cf2dd' implementation 'androidx.multidex:multidex:2.0.1' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/IcsExporter.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/IcsExporter.kt index b286d7c92..1c4969b8b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/IcsExporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/IcsExporter.kt @@ -137,6 +137,7 @@ class IcsExporter(private val activity: BaseSimpleActivity) { writeLn("$CATEGORIES${activity.eventTypesDB.getEventTypeWithId(event.eventType)?.title}") writeLn("$LAST_MODIFIED:${Formatter.getExportedTime(event.lastUpdated)}") writeLn("$TRANSP${if (event.availability == Events.AVAILABILITY_FREE) TRANSPARENT else OPAQUE}") + event.location.let { if (it.isNotEmpty()) writeLn("$LOCATION:$it") } if (event.getIsAllDay()) { writeLn("$DTSTART;$VALUE=$DATE:${Formatter.getDayCodeFromTS(event.startTS)}") diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/MyWidgetMonthlyProvider.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/MyWidgetMonthlyProvider.kt index 83560c790..941a33af2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/MyWidgetMonthlyProvider.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/MyWidgetMonthlyProvider.kt @@ -138,12 +138,11 @@ class MyWidgetMonthlyProvider : AppWidgetProvider() { .toMutableList() as ArrayList day.dayEvents.forEach { - var backgroundColor = it.color + val backgroundColor = it.color var eventTextColor = backgroundColor.getContrastColor() if (it.isTask() && it.isTaskCompleted() && dimCompletedTasks || !day.isThisMonth || (dimPastEvents && it.isPastEvent)) { eventTextColor = eventTextColor.adjustAlpha(MEDIUM_ALPHA) - backgroundColor = backgroundColor.adjustAlpha(MEDIUM_ALPHA) } val newRemoteView = RemoteViews(packageName, R.layout.day_monthly_event_view_widget).apply {