From 95d6404290d1ba8fb6944f8cd03a855b8a5d2ad4 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 8 Jul 2024 18:31:41 +0200 Subject: [PATCH] CallScreenPresenter is reading the current theme, it needs to be in the ElementTheme block. Closes #3153 --- .../android/features/call/impl/ui/ElementCallActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/ui/ElementCallActivity.kt b/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/ui/ElementCallActivity.kt index 1f4313864d..d0eab337f2 100644 --- a/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/ui/ElementCallActivity.kt +++ b/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/ui/ElementCallActivity.kt @@ -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 ->