From ff1d9c9d67c537e50dd82e1fba86889cce6aef9a Mon Sep 17 00:00:00 2001 From: razeeman Date: Sun, 17 Nov 2024 09:03:27 +0300 Subject: [PATCH] fix favourite colors showing as not favourite in dark theme --- .../simpletimetracker/core/interactor/ColorViewDataInteractor.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/core/src/main/java/com/example/util/simpletimetracker/core/interactor/ColorViewDataInteractor.kt b/core/src/main/java/com/example/util/simpletimetracker/core/interactor/ColorViewDataInteractor.kt index 9f435b0e4..3afce7d54 100644 --- a/core/src/main/java/com/example/util/simpletimetracker/core/interactor/ColorViewDataInteractor.kt +++ b/core/src/main/java/com/example/util/simpletimetracker/core/interactor/ColorViewDataInteractor.kt @@ -80,7 +80,6 @@ class ColorViewDataInteractor @Inject constructor( colorId = favouriteColor.id, type = ColorViewData.Type.Favourite, colorInt = favouriteColor.colorInt.toIntOrNull() - ?.let { if (isDarkTheme) colorMapper.darkenColor(it) else it } ?: colorMapper.toInactiveColor(isDarkTheme), selected = false, )