aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-07-02 00:08:35 -0700
committerAllan Wang <me@allanwang.ca>2019-07-02 00:08:35 -0700
commit1c0b03492c7df1677ddc48d47b47eacfc0f41cb8 (patch)
tree7c327761ae29926b85e5650ae09cba8ea46dacba /app
parent312f956b8a50f48075ebfee580dd4545e1c630f3 (diff)
downloadfrost-1c0b03492c7df1677ddc48d47b47eacfc0f41cb8.tar.gz
frost-1c0b03492c7df1677ddc48d47b47eacfc0f41cb8.tar.bz2
frost-1c0b03492c7df1677ddc48d47b47eacfc0f41cb8.zip
Make pymk dependent, resolves #1447
Diffstat (limited to 'app')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt4
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/web/FrostUrlOverlayValidator.kt6
2 files changed, 7 insertions, 3 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt
index 8ad0d432..0574aeae 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt
@@ -327,6 +327,10 @@ val dependentSegments = arrayOf(
* Editing images
*/
"/confirmation/?",
+ /**
+ * Remove entry from "people you may know"
+ */
+ "/pymk/xout/",
/*
* Facebook messages have the following cases for the tid query
* mid* or id* for newer threads, which can be launched in new windows
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 b06208a6..4aa43b49 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostUrlOverlayValidator.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostUrlOverlayValidator.kt
@@ -78,16 +78,16 @@ fun FrostWebView.requestWebOverlay(url: String): Boolean {
val shouldUseDesktop = url.formattedFbUrl.shouldUseDesktopAgent
//already overlay; manage user agent
if (userAgentString != USER_AGENT_DESKTOP && shouldUseDesktop) {
- L.i { "Switch to desktop agent overlay" }
+ L._i { "Switch to desktop agent overlay" }
context.launchWebOverlayDesktop(url)
return true
}
if (userAgentString == USER_AGENT_DESKTOP && !shouldUseDesktop) {
- L.i { "Switch from desktop agent" }
+ L._i { "Switch from desktop agent" }
context.launchWebOverlay(url)
return true
}
- L.i { "return false switch" }
+ L._i { "return false switch" }
return false
}
L.v { "Request web overlay passed" }