From 8e795d708da1edeccd552e9b4c802bed22c58368 Mon Sep 17 00:00:00 2001 From: Avently <7953703+avently@users.noreply.github.com> Date: Fri, 25 Oct 2024 19:40:40 +0700 Subject: [PATCH] fix --- .../common/src/commonMain/kotlin/chat/simplex/common/App.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/App.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/App.kt index 8ca0da0d21..ea392e97c1 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/App.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/App.kt @@ -158,7 +158,9 @@ fun MainScreen() { showChatDatabaseError -> { // Prevent showing keyboard on Android when: passcode enabled and database password not saved if (!unauthorized.value && chatModel.chatDbStatus.value != null) { - DatabaseErrorView(chatModel.chatDbStatus, chatModel.controller.appPrefs) + CompositionLocalProvider(LocalAppBarHandler provides remember { AppBarHandler() }) { + DatabaseErrorView(chatModel.chatDbStatus, chatModel.controller.appPrefs) + } } } remember { chatModel.chatDbEncrypted }.value == null || localUserCreated == null -> SplashView()