aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-13 17:19:19 -0700
committerGitHub <noreply@github.com>2017-07-13 17:19:19 -0700
commitc3f1fc6a8b3216442a018bb04843dfa68d738918 (patch)
tree1eb9dc13fc46e7ed98550f6edbdd015af9c106b8 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt
parent1d364a1f5a8322ce8fbe200fcc9f5a41f91b41e8 (diff)
downloadfrost-1.2.2.tar.gz
frost-1.2.2.tar.bz2
frost-1.2.2.zip
Separate pref strings, add notifs control, fix searchview (#60)v1.2.2
* Separate pref strings and add notif controls * Add overlay toggle and minor cleanups * Fix search view
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.kt2
1 files changed, 1 insertions, 1 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 d4d08958..b3b1cfe5 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt
@@ -64,7 +64,7 @@ class FrostWebViewSearch(context: Context, val contract: SearchContract) : WebVi
element ->
//split text into separate items
L.v("Search element ${element.attr("href")}")
- val texts = element.select("div").map { (it.ownText()) }.filter { it.isNotBlank() }
+ val texts = element.select("div").map { (it.text()) }.filter { it.isNotBlank() }
val pair = Pair(texts, element.attr("href"))
L.v("Search element potential $pair")
pair