mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
fix a glitch at setting local event type
This commit is contained in:
@ -60,7 +60,8 @@ class EventActivity : SimpleActivity() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dbHelper.getEventType(config.lastUsedLocalEventTypeId) == null) {
|
val localEventType = dbHelper.getEventType(config.lastUsedLocalEventTypeId)
|
||||||
|
if (localEventType == null || localEventType.caldavCalendarId != 0) {
|
||||||
config.lastUsedLocalEventTypeId = DBHelper.REGULAR_EVENT_TYPE_ID
|
config.lastUsedLocalEventTypeId = DBHelper.REGULAR_EVENT_TYPE_ID
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user