mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
properly export event location
This commit is contained in:
@@ -70,7 +70,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:58574dd952'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:271f2cf2dd'
|
||||||
implementation 'androidx.multidex:multidex:2.0.1'
|
implementation 'androidx.multidex:multidex:2.0.1'
|
||||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||||||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||||||
|
@@ -137,6 +137,7 @@ class IcsExporter(private val activity: BaseSimpleActivity) {
|
|||||||
writeLn("$CATEGORIES${activity.eventTypesDB.getEventTypeWithId(event.eventType)?.title}")
|
writeLn("$CATEGORIES${activity.eventTypesDB.getEventTypeWithId(event.eventType)?.title}")
|
||||||
writeLn("$LAST_MODIFIED:${Formatter.getExportedTime(event.lastUpdated)}")
|
writeLn("$LAST_MODIFIED:${Formatter.getExportedTime(event.lastUpdated)}")
|
||||||
writeLn("$TRANSP${if (event.availability == Events.AVAILABILITY_FREE) TRANSPARENT else OPAQUE}")
|
writeLn("$TRANSP${if (event.availability == Events.AVAILABILITY_FREE) TRANSPARENT else OPAQUE}")
|
||||||
|
event.location.let { if (it.isNotEmpty()) writeLn("$LOCATION:$it") }
|
||||||
|
|
||||||
if (event.getIsAllDay()) {
|
if (event.getIsAllDay()) {
|
||||||
writeLn("$DTSTART;$VALUE=$DATE:${Formatter.getDayCodeFromTS(event.startTS)}")
|
writeLn("$DTSTART;$VALUE=$DATE:${Formatter.getDayCodeFromTS(event.startTS)}")
|
||||||
|
@@ -138,12 +138,11 @@ class MyWidgetMonthlyProvider : AppWidgetProvider() {
|
|||||||
.toMutableList() as ArrayList<Event>
|
.toMutableList() as ArrayList<Event>
|
||||||
|
|
||||||
day.dayEvents.forEach {
|
day.dayEvents.forEach {
|
||||||
var backgroundColor = it.color
|
val backgroundColor = it.color
|
||||||
var eventTextColor = backgroundColor.getContrastColor()
|
var eventTextColor = backgroundColor.getContrastColor()
|
||||||
|
|
||||||
if (it.isTask() && it.isTaskCompleted() && dimCompletedTasks || !day.isThisMonth || (dimPastEvents && it.isPastEvent)) {
|
if (it.isTask() && it.isTaskCompleted() && dimCompletedTasks || !day.isThisMonth || (dimPastEvents && it.isPastEvent)) {
|
||||||
eventTextColor = eventTextColor.adjustAlpha(MEDIUM_ALPHA)
|
eventTextColor = eventTextColor.adjustAlpha(MEDIUM_ALPHA)
|
||||||
backgroundColor = backgroundColor.adjustAlpha(MEDIUM_ALPHA)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val newRemoteView = RemoteViews(packageName, R.layout.day_monthly_event_view_widget).apply {
|
val newRemoteView = RemoteViews(packageName, R.layout.day_monthly_event_view_widget).apply {
|
||||||
|
Reference in New Issue
Block a user