From c8f76b5aa406f84f49789a50871c68a1a95a232d Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Thu, 15 Jun 2017 19:25:17 -0700 Subject: Only animate webview when explicitly asked --- app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt') 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 14ea4df8..bb482c3c 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt @@ -23,11 +23,11 @@ class FrostJSI(val context: Context, val webView: FrostWebViewCore) { fun loadUrl(url: String) = context.launchWebOverlay(url) @JavascriptInterface - fun reloadBaseUrl() { + fun reloadBaseUrl(animate: Boolean) { L.d("FrostJSI reload") webView.post { webView.stopLoading() - webView.loadBaseUrl() + webView.loadBaseUrl(animate) } } -- cgit v1.2.3