aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClientMenu.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-15 19:25:17 -0700
committerAllan Wang <me@allanwang.ca>2017-06-15 19:25:17 -0700
commitc8f76b5aa406f84f49789a50871c68a1a95a232d (patch)
tree7a47029f13dd023b2947eb294c8c9f7c7dbd3fe0 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClientMenu.kt
parent0d1f0e215b1890f2f5d45373b2746b7ef91da494 (diff)
downloadfrost-c8f76b5aa406f84f49789a50871c68a1a95a232d.tar.gz
frost-c8f76b5aa406f84f49789a50871c68a1a95a232d.tar.bz2
frost-c8f76b5aa406f84f49789a50871c68a1a95a232d.zip
Only animate webview when explicitly asked
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClientMenu.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClientMenu.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClientMenu.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClientMenu.kt
index 3b032f62..f299b840 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClientMenu.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClientMenu.kt
@@ -45,18 +45,18 @@ class FrostWebViewClientMenu(refreshObservable: Subject<Boolean>) : FrostWebView
override fun emit(flag: Int) {
super.emit(flag)
- if (view != null) super.onPageFinishedReveal(view!!, true)
+ if (view != null) super.onPageFinishedActions(view!!)
view = null
}
- override fun onPageFinishedReveal(view: FrostWebViewCore, url: String?) {
+ override fun onPageFinishedActions(view: FrostWebViewCore, url: String?) {
when (url) {
"https://m.facebook.com/settings",
"https://m.facebook.com/settings#",
"https://m.facebook.com/settings#!/settings?soft=bookmarks" -> {
//do nothing; we will further inject before revealing
}
- else -> super.onPageFinishedReveal(view, false)
+ else -> super.onPageFinishedActions(view)
}
}