ignore caldav calendars at modifying the only local calendar color
This commit is contained in:
parent
460bbfbb51
commit
937c98f758
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue