Browse Source

CallScreenPresenter is reading the current theme, it needs to be in the ElementTheme block. Closes #3153

pull/3165/head
Benoit Marty 2 months ago committed by Benoit Marty
parent
commit
c73d814220
  1. 2
      features/call/impl/src/main/kotlin/io/element/android/features/call/impl/ui/ElementCallActivity.kt

2
features/call/impl/src/main/kotlin/io/element/android/features/call/impl/ui/ElementCallActivity.kt

@ -94,10 +94,10 @@ class ElementCallActivity : AppCompatActivity(), CallScreenNavigator { @@ -94,10 +94,10 @@ class ElementCallActivity : AppCompatActivity(), CallScreenNavigator {
appPreferencesStore.getThemeFlow().mapToTheme()
}
.collectAsState(initial = Theme.System)
val state = presenter.present()
ElementTheme(
darkTheme = theme.isDark()
) {
val state = presenter.present()
CallScreenView(
state = state,
requestPermissions = { permissions, callback ->

Loading…
Cancel
Save