diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-15 19:25:17 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-15 19:25:17 -0700 |
commit | c8f76b5aa406f84f49789a50871c68a1a95a232d (patch) | |
tree | 7a47029f13dd023b2947eb294c8c9f7c7dbd3fe0 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClientMenu.kt | |
parent | 0d1f0e215b1890f2f5d45373b2746b7ef91da494 (diff) | |
download | frost-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.kt | 6 |
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) } } |