ignore caldav calendars at modifying the only local calendar color

This commit is contained in:
tibbi 2017-08-22 12:10:44 +02:00
parent 460bbfbb51
commit 937c98f758
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class SettingsActivity : SimpleActivity() {
private fun checkPrimaryColor() { private fun checkPrimaryColor() {
if (config.primaryColor != mStoredPrimaryColor) { if (config.primaryColor != mStoredPrimaryColor) {
dbHelper.getEventTypes { dbHelper.getEventTypes {
if (it.size == 1) { if (it.filter { it.caldavCalendarId == 0 }.size == 1) {
val eventType = it[0] val eventType = it[0]
eventType.color = config.primaryColor eventType.color = config.primaryColor
dbHelper.updateEventType(eventType) dbHelper.updateEventType(eventType)