properly export event location

This commit is contained in:
tibbi 2023-02-09 16:53:13 +01:00
parent ce3214ef95
commit 5c8c2dab22
3 changed files with 3 additions and 3 deletions

View File

@ -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'

View File

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

View File

@ -138,12 +138,11 @@ class MyWidgetMonthlyProvider : AppWidgetProvider() {
.toMutableList() as ArrayList<Event>
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 {