diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-04 00:32:45 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-07-04 00:32:45 -0700 |
commit | 43885c6c063a76738ed7220aba619e47db7c4080 (patch) | |
tree | 6269af12c2656f81c54daad59b6b6aee5d4a1066 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt | |
parent | ab98d536da8cd5e98132e125b81dde7bfcfa8056 (diff) | |
parent | 7a13673828f088c179763e8621a94e334319f226 (diff) | |
download | frost-43885c6c063a76738ed7220aba619e47db7c4080.tar.gz frost-43885c6c063a76738ed7220aba619e47db7c4080.tar.bz2 frost-43885c6c063a76738ed7220aba619e47db7c4080.zip |
fix update
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt index 837df260..83dccb9a 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt @@ -127,6 +127,7 @@ class FrostWebViewSearch(context: Context, val contract: SearchContract) : WebVi when (flag) { 0 -> { L.d("Search loaded successfully") + if (!contract.isSearchOpened) pauseLoad = true } 1 -> { //something is not found in the search view; this is effectively useless L.eThrow("Search subject error; reverting to full overlay") @@ -147,6 +148,7 @@ class FrostWebViewSearch(context: Context, val contract: SearchContract) : WebVi interface SearchContract { fun searchOverlayDispose() fun emitSearchResponse(items: List<SearchItem>) + val isSearchOpened: Boolean } } |