mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 12:20:51 +01:00
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() {
|
||||
if (config.primaryColor != mStoredPrimaryColor) {
|
||||
dbHelper.getEventTypes {
|
||||
if (it.size == 1) {
|
||||
if (it.filter { it.caldavCalendarId == 0 }.size == 1) {
|
||||
val eventType = it[0]
|
||||
eventType.color = config.primaryColor
|
||||
dbHelper.updateEventType(eventType)
|
||||
|
Loading…
x
Reference in New Issue
Block a user