From 41b948d1343636e725dab64abd41b755d1b0ddba Mon Sep 17 00:00:00 2001 From: Kazuhiro Ito Date: Sun, 21 Mar 2021 21:05:45 +0900 Subject: [PATCH] fix default color in color picker of CalDAV event type --- .../calendar/pro/dialogs/SelectEventTypeColorDialog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/dialogs/SelectEventTypeColorDialog.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/dialogs/SelectEventTypeColorDialog.kt index 4ee2bf3c0..4471e2ac2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/dialogs/SelectEventTypeColorDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/dialogs/SelectEventTypeColorDialog.kt @@ -68,7 +68,7 @@ class SelectEventTypeColorDialog(val activity: Activity, val eventType: EventTyp } private fun showCustomColorPicker() { - ColorPickerDialog(activity, activity.config.primaryColor) { wasPositivePressed, color -> + ColorPickerDialog(activity, eventType.color) { wasPositivePressed, color -> if (wasPositivePressed) { callback(color) }