From 2f420f1cf0da814da5d46eecfb1632074c563e90 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 22 May 2018 20:25:50 +0200 Subject: [PATCH] remove a redundant variable at widget config screen --- .../calendar/activities/WidgetListConfigureActivity.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetListConfigureActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetListConfigureActivity.kt index e6bf2dc8f..253d290d4 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetListConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetListConfigureActivity.kt @@ -32,7 +32,6 @@ class WidgetListConfigureActivity : SimpleActivity() { private var mTextColor = 0 private var mEventsAdapter: EventListAdapter? = null - private var mIsCustomizingColors = false public override fun onCreate(savedInstanceState: Bundle?) { useDynamicTheme = false @@ -41,10 +40,10 @@ class WidgetListConfigureActivity : SimpleActivity() { setContentView(R.layout.widget_config_list) initVariables() - mIsCustomizingColors = intent.extras?.getBoolean(IS_CUSTOMIZING_COLORS) ?: false + val isCustomizingColors = intent.extras?.getBoolean(IS_CUSTOMIZING_COLORS) ?: false mWidgetId = intent.extras?.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID) ?: AppWidgetManager.INVALID_APPWIDGET_ID - if (mWidgetId == AppWidgetManager.INVALID_APPWIDGET_ID && !mIsCustomizingColors) { + if (mWidgetId == AppWidgetManager.INVALID_APPWIDGET_ID && !isCustomizingColors) { finish() }