diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-06 19:29:25 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-06 19:29:25 -0700 |
commit | 067ea15188f20fa268255153e35c2df732fdffee (patch) | |
tree | 87a0fcd84f37ad569ec2743ffc702a69cd59e252 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt | |
parent | c4e22f5512570d05178711ba90c28eb6dc288253 (diff) | |
download | frost-067ea15188f20fa268255153e35c2df732fdffee.tar.gz frost-067ea15188f20fa268255153e35c2df732fdffee.tar.bz2 frost-067ea15188f20fa268255153e35c2df732fdffee.zip |
Clean up injectors and events
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt index 7e121b83..6477deda 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewCore.kt @@ -11,6 +11,7 @@ import android.util.AttributeSet import android.view.MotionEvent import android.view.View import android.view.animation.DecelerateInterpolator +import android.webkit.CookieManager import android.webkit.WebView import com.pitchedapps.frost.utils.L import io.reactivex.Scheduler @@ -113,7 +114,7 @@ class FrostWebViewCore @JvmOverloads constructor( */ fun scrollOrRefresh() { L.d("Scroll or Refresh") - if (scrollY < 5) reload() + if (scrollY < 5) loadBaseUrl() else scrollToTop() } |