aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2021-09-28 23:07:57 -0700
committerGitHub <noreply@github.com>2021-09-28 23:07:57 -0700
commit0ef4cbde805db6812b922d967966367ae7c98e60 (patch)
tree4335658a8313fd5fbb7716c8e5fcf447a11fb4ab /app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt
parenteb9fc5c6a558cdcbe3fe1e1911b22e0855645a38 (diff)
parent749ebe31d0d23d7097a7c989a8324714aa28d996 (diff)
downloadfrost-0ef4cbde805db6812b922d967966367ae7c98e60.tar.gz
frost-0ef4cbde805db6812b922d967966367ae7c98e60.tar.bz2
frost-0ef4cbde805db6812b922d967966367ae7c98e60.zip
Merge pull request #1818 from AllanWang/resolve-activity
Remove resolveActivity
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt
index 1495b2e0..a6603f01 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt
@@ -50,7 +50,7 @@ import com.pitchedapps.frost.utils.isImageUrl
import com.pitchedapps.frost.utils.isIndirectImageUrl
import com.pitchedapps.frost.utils.isMessengerUrl
import com.pitchedapps.frost.utils.launchImageActivity
-import com.pitchedapps.frost.utils.resolveActivityForUri
+import com.pitchedapps.frost.utils.startActivityForUri
import com.pitchedapps.frost.views.FrostWebView
import kotlinx.coroutines.channels.SendChannel
import kotlinx.coroutines.launch
@@ -253,7 +253,7 @@ open class FrostWebViewClient(val web: FrostWebView) : BaseWebViewClient() {
v { "Url path $path" }
val url = request.url.toString()
if (url.isExplicitIntent) {
- view.context.resolveActivityForUri(request.url)
+ view.context.startActivityForUri(request.url)
return true
}
if (path.startsWith("/composer/")) {
@@ -265,7 +265,7 @@ open class FrostWebViewClient(val web: FrostWebView) : BaseWebViewClient() {
if (url.isImageUrl) {
return launchImage(url.formattedFbUrl)
}
- if (prefs.linksInDefaultApp && view.context.resolveActivityForUri(request.url)) {
+ if (prefs.linksInDefaultApp && view.context.startActivityForUri(request.url)) {
return true
}
// Convert desktop urls to mobile ones