Fixes #575: Crash "IllegalStateException: Display already acquired"
This commit is contained in:
parent
3954c55c53
commit
d910bda929
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user