From 4c68b3b6af1ce3220a23ca035d3661d80ce93e42 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 5 Feb 2018 14:54:38 +0100 Subject: [PATCH] properly update the FAB color --- .../simplemobiletools/calendar/activities/MainActivity.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt index 6ce328f5e..7c61d53ef 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt @@ -137,7 +137,10 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener { storeStateVariables() updateWidgets() - updateTextColors(calendar_coordinator) + if (config.storedView != EVENTS_LIST_VIEW) { + updateTextColors(calendar_coordinator) + } + calendar_fab.setColors(config.textColor, getAdjustedPrimaryColor(), config.backgroundColor) search_holder.background = ColorDrawable(config.backgroundColor) }