From 41e2fffb87e5ff731069b040cf4be4dbc2b579ba Mon Sep 17 00:00:00 2001 From: Parvesh Monu Date: Tue, 18 Apr 2023 16:01:52 +0530 Subject: [PATCH] fix app theme changes with PN enabled and the app closed (#15670) --- src/status_im2/navigation/core.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/status_im2/navigation/core.cljs b/src/status_im2/navigation/core.cljs index b51da3a469..ffeed69dbe 100644 --- a/src/status_im2/navigation/core.cljs +++ b/src/status_im2/navigation/core.cljs @@ -8,6 +8,7 @@ [status-im2.navigation.state :as state] [status-im2.navigation.view :as views] [taoensso.timbre :as log] + [status-im2.common.theme.core :as theme] [status-im2.navigation.options :as options])) (navigation/set-lazy-component-registrator @@ -26,7 +27,8 @@ (if (= @state/root-id :multiaccounts-stack) (re-frame/dispatch-sync [:set-multiaccount-root]) (when @state/root-id - (navigation/set-root (get (roots/roots) @state/root-id)) + (reset! theme/device-theme (rn/get-color-scheme)) + (re-frame/dispatch [:init-root @state/root-id]) (re-frame/dispatch [::login-core/check-last-chat]))) (rn/hide-splash-screen)))