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 } } }