From d683cae6ffe644a9f63eea6cf3b7e59d2bde617b Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Thu, 21 Dec 2017 02:16:34 -0500 Subject: Enhancement/fragment interface (#564) * Begin fragment interfaces and themable contracts * Prepare swiperefresh interface * Snapshot * Add compilable version * Revamp once more * Finalize layouts * Cleanup --- .../main/kotlin/com/pitchedapps/frost/web/FrostUrlOverlayValidator.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostUrlOverlayValidator.kt') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostUrlOverlayValidator.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostUrlOverlayValidator.kt index d1f144a6..9255b5bb 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostUrlOverlayValidator.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostUrlOverlayValidator.kt @@ -9,6 +9,7 @@ import com.pitchedapps.frost.facebook.FbItem import com.pitchedapps.frost.facebook.USER_AGENT_BASIC import com.pitchedapps.frost.facebook.formattedFbUrl import com.pitchedapps.frost.utils.* +import com.pitchedapps.frost.views.FrostWebView import org.jetbrains.anko.runOnUiThread /** @@ -27,7 +28,7 @@ import org.jetbrains.anko.runOnUiThread * whether the user agent string should be changed. All propagated results will return false, * as we have no need of sending a new intent to the same activity */ -fun FrostWebViewCore.requestWebOverlay(url: String): Boolean { +fun FrostWebView.requestWebOverlay(url: String): Boolean { if (url == "#" || !url.isIndependent) { L.i("Forbid overlay switch", url) return false -- cgit v1.2.3