[fenix] Fixes https://github.com/mozilla-mobile/fenix/issues/575: Crash "IllegalStateException: Display already acquired"

pull/600/head
Colin Lee 5 years ago
parent 28101b5f43
commit 452d157f0c

@ -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…
Cancel
Save