Fixes #575: Crash "IllegalStateException: Display already acquired"

This commit is contained in:
Colin Lee 2019-02-20 09:31:29 -06:00
parent 3954c55c53
commit d910bda929

View File

@ -39,9 +39,11 @@ class DefaultThemeManager : ThemeManager {
get() = temporaryThemeManagerStorage
override fun setTheme(theme: ThemeManager.Theme) {
temporaryThemeManagerStorage = theme
if (temporaryThemeManagerStorage != theme) {
temporaryThemeManagerStorage = theme
onThemeChange?.invoke(currentTheme)
onThemeChange?.invoke(currentTheme)
}
}
companion object {