From c86207a3baba6a1c2b4ebab611f0ae552d2607cd Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 3 Oct 2020 21:14:51 -0700 Subject: Link settings with injection --- app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" } } -- cgit v1.2.3