From b642561616ac46beba5fff4d3f17bf51ef4fb873 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 29 Nov 2017 22:41:29 +0100 Subject: [PATCH] do not use the dynamic theme at widget config screens --- app/build.gradle | 2 +- .../calendar/activities/WidgetListConfigureActivity.kt | 1 + .../calendar/activities/WidgetMonthlyConfigureActivity.kt | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index e28d8fecb..3e5afc7d9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -47,7 +47,7 @@ ext { } dependencies { - implementation 'com.simplemobiletools:commons:2.42.8' + implementation 'com.simplemobiletools:commons:3.0.3' implementation 'joda-time:joda-time:2.9.9' implementation 'com.facebook.stetho:stetho:1.5.0' implementation 'com.android.support:multidex:1.0.2' 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 5947a529a..cb1e1e0ae 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetListConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetListConfigureActivity.kt @@ -36,6 +36,7 @@ class WidgetListConfigureActivity : SimpleActivity() { private var mEventsAdapter: EventListAdapter? = null public override fun onCreate(savedInstanceState: Bundle?) { + useDynamicTheme = false super.onCreate(savedInstanceState) setResult(Activity.RESULT_CANCELED) setContentView(R.layout.widget_config_list) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetMonthlyConfigureActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetMonthlyConfigureActivity.kt index 10bfad904..311976787 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetMonthlyConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetMonthlyConfigureActivity.kt @@ -44,6 +44,7 @@ class WidgetMonthlyConfigureActivity : SimpleActivity(), MonthlyCalendar { private var mPrimaryColor = 0 public override fun onCreate(savedInstanceState: Bundle?) { + useDynamicTheme = false super.onCreate(savedInstanceState) setResult(Activity.RESULT_CANCELED) setContentView(R.layout.widget_config_monthly)