[#5449] Activity loading indicator persist staying on Android

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
Andrey Shovkoplyas 2018-08-27 17:56:53 +03:00 committed by Igor Mandrigin
parent a22d13fd80
commit 3ca9ba892c
No known key found for this signature in database
GPG Key ID: 4A0EDDE26E66BC8B
1 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,8 @@
[status-im.ui.components.styles :as components.styles]
[status-im.ui.components.colors :as colors]
[clojure.string :as string]
[status-im.ui.screens.browser.permissions.views :as permissions.views]))
[status-im.ui.screens.browser.permissions.views :as permissions.views]
[status-im.utils.platform :as platform]))
(def browser-config
(reader/read-string (slurp "./src/status_im/utils/browser_config.edn")))
@ -82,7 +83,8 @@
(defn on-navigation-change [event browser]
(let [{:strs [url loading]} (js->clj event)]
(re-frame/dispatch [:update-browser-options {:loading? loading}])
(when platform/ios?
(re-frame/dispatch [:update-browser-options {:loading? loading}]))
(when (not= "about:blank" url)
(re-frame/dispatch [:update-browser-on-nav-change browser url loading]))))