Fixes #575: Crash "IllegalStateException: Display already acquired"
parent
3954c55c53
commit
d910bda929
|
@ -39,10 +39,12 @@ class DefaultThemeManager : ThemeManager {
|
||||||
get() = temporaryThemeManagerStorage
|
get() = temporaryThemeManagerStorage
|
||||||
|
|
||||||
override fun setTheme(theme: ThemeManager.Theme) {
|
override fun setTheme(theme: ThemeManager.Theme) {
|
||||||
|
if (temporaryThemeManagerStorage != theme) {
|
||||||
temporaryThemeManagerStorage = theme
|
temporaryThemeManagerStorage = theme
|
||||||
|
|
||||||
onThemeChange?.invoke(currentTheme)
|
onThemeChange?.invoke(currentTheme)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun resolveAttribute(attribute: Int, context: Context): Int {
|
fun resolveAttribute(attribute: Int, context: Context): Int {
|
||||||
|
|
Loading…
Reference in New Issue