From 3af9bd3bb0effb93ee3896258af1a8eb086d5b37 Mon Sep 17 00:00:00 2001 From: Agnieszka C <85929121+Aga-C@users.noreply.github.com> Date: Thu, 13 Jan 2022 20:55:52 +0100 Subject: [PATCH] Hidden "Show events happening" setting at widget color config screen (#1617) --- .../calendar/pro/activities/WidgetListConfigureActivity.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/WidgetListConfigureActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/WidgetListConfigureActivity.kt index 79182c0c6..1091673ec 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/WidgetListConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/WidgetListConfigureActivity.kt @@ -23,10 +23,7 @@ import com.simplemobiletools.calendar.pro.models.ListSectionDay import com.simplemobiletools.calendar.pro.models.Widget import com.simplemobiletools.commons.dialogs.ColorPickerDialog import com.simplemobiletools.commons.dialogs.RadioGroupDialog -import com.simplemobiletools.commons.extensions.adjustAlpha -import com.simplemobiletools.commons.extensions.applyColorFilter -import com.simplemobiletools.commons.extensions.hideKeyboard -import com.simplemobiletools.commons.extensions.setFillWithStroke +import com.simplemobiletools.commons.extensions.* import com.simplemobiletools.commons.helpers.* import com.simplemobiletools.commons.models.RadioItem import kotlinx.android.synthetic.main.widget_config_list.* @@ -68,6 +65,8 @@ class WidgetListConfigureActivity : SimpleActivity() { config_bg_color.setOnClickListener { pickBackgroundColor() } config_text_color.setOnClickListener { pickTextColor() } + period_picker_holder.beGoneIf(isCustomizingColors) + val primaryColor = config.primaryColor config_bg_seekbar.setColors(mTextColor, primaryColor, primaryColor) }