diff options
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/views/FrostWebView.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/views/FrostWebView.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostWebView.kt b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostWebView.kt index c35f1bb8..7972e813 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostWebView.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostWebView.kt @@ -27,8 +27,8 @@ class FrostWebView @JvmOverloads constructor( FrostContentCore { override fun reload(animate: Boolean) { - parent.registerTransition(animate) - super.reload() + if (parent.registerTransition(false, animate)) + super.reload() } override lateinit var parent: FrostContentParent @@ -80,8 +80,8 @@ class FrostWebView @JvmOverloads constructor( fun loadUrl(url: String?, animate: Boolean) { if (url == null) return - parent.registerTransition(animate) - super.loadUrl(url) + if (parent.registerTransition(this.url != url, animate)) + super.loadUrl(url) } override fun reloadBase(animate: Boolean) { |