From f11b3cc670e7ce065ac9b045d4a0387079ff12da Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Wed, 19 Sep 2018 15:14:04 +0300 Subject: [PATCH] restore the last view before entering background only on android in prod configuration Signed-off-by: yenda --- src/status_im/ui/screens/views.cljs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/status_im/ui/screens/views.cljs b/src/status_im/ui/screens/views.cljs index 798af63fc5..45a485f71b 100644 --- a/src/status_im/ui/screens/views.cljs +++ b/src/status_im/ui/screens/views.cljs @@ -321,6 +321,7 @@ (navigation/set-navigator-ref r) (when (and platform/android? + (not js/goog.DEBUG) (not (contains? #{:intro :login} @view-id))) (navigation/navigate-to @view-id))) ;; see https://reactnavigation.org/docs/en/state-persistence.html#development-mode