From b032c459d13ee53cd58c1475642f7be11a562490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Tue, 30 Apr 2019 11:16:23 +0200 Subject: [PATCH] Fix theme on release build (#332) --- app/src/main/java/io/github/wulkanowy/ui/base/ThemeManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/github/wulkanowy/ui/base/ThemeManager.kt b/app/src/main/java/io/github/wulkanowy/ui/base/ThemeManager.kt index bf16ac49..449f451b 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/base/ThemeManager.kt +++ b/app/src/main/java/io/github/wulkanowy/ui/base/ThemeManager.kt @@ -27,7 +27,7 @@ class ThemeManager @Inject constructor(private val preferencesRepository: Prefer private fun isThemeApplicable(activity: AppCompatActivity): Boolean { return activity.packageManager.getPackageInfo(activity.packageName, GET_ACTIVITIES) - .activities.singleOrNull { it.name == activity.localClassName }?.theme + .activities.singleOrNull { it.name == activity::class.java.canonicalName }?.theme .let { it == R.style.WulkanowyTheme_Black || it == R.style.WulkanowyTheme_NoActionBar } } }