aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-09-14 20:37:30 -0700
committerAllan Wang <me@allanwang.ca>2019-09-14 20:37:30 -0700
commit21e745aeec6f57c0b972faa267c21c96bdb8224f (patch)
tree6dabf37a3fe702538037f9c63857d5756636c70c /app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
parentf8b477b976cf858e1fff5dbb8f9de26ef3de1cd4 (diff)
downloadfrost-21e745aeec6f57c0b972faa267c21c96bdb8224f.tar.gz
frost-21e745aeec6f57c0b972faa267c21c96bdb8224f.tar.bz2
frost-21e745aeec6f57c0b972faa267c21c96bdb8224f.zip
Fix menu loading visibility
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
index 376257d4..449e98f1 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
@@ -127,7 +127,9 @@ class FrostJSI(val web: FrostWebView) {
@JavascriptInterface
fun isReady() {
- refresh.offer(false)
+ if (web.frostWebClient !is FrostWebViewClientMenu) {
+ refresh.offer(false)
+ }
}
@JavascriptInterface