aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-10-03 21:14:51 -0700
committerAllan Wang <me@allanwang.ca>2020-10-03 21:14:51 -0700
commitc86207a3baba6a1c2b4ebab611f0ae552d2607cd (patch)
tree0a0c07b7f3b65b89803815622f414ff9facc9377 /app/src/main/kotlin/com
parentd1f42ab59c86bbc7027b2337982405df78081947 (diff)
downloadfrost-c86207a3baba6a1c2b4ebab611f0ae552d2607cd.tar.gz
frost-c86207a3baba6a1c2b4ebab611f0ae552d2607cd.tar.bz2
frost-c86207a3baba6a1c2b4ebab611f0ae552d2607cd.zip
Link settings with injection
Diffstat (limited to 'app/src/main/kotlin/com')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt
index 5826f383..dd1d45cb 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt
@@ -82,7 +82,10 @@ open class FrostWebViewClient(val web: FrostWebView) : BaseWebViewClient() {
super.doUpdateVisitedHistory(view, url, isReload)
urlSupportsRefresh = urlSupportsRefresh(url)
web.parent.swipeEnabled = urlSupportsRefresh
- view.jsInject(JsAssets.AUTO_RESIZE_TEXTAREA, prefs = prefs)
+ view.jsInject(
+ JsAssets.AUTO_RESIZE_TEXTAREA.maybe(prefs.autoExpandTextBox),
+ prefs = prefs
+ )
v { "History $url; refresh $urlSupportsRefresh" }
}