fix: 修复链接无法正常在外置浏览器打开

This commit is contained in:
HuanCheng65 2023-03-26 23:24:10 +08:00
parent 9482abb791
commit 2559b3864d
No known key found for this signature in database
GPG Key ID: E9031EF91A805148
1 changed files with 7 additions and 0 deletions

View File

@ -172,6 +172,13 @@ fun launchUrl(context: Context, url: String) {
return
}
if (!path.contains("android_asset")) {
if (path == "/mo/q/checkurl") {
launchUrl(
context,
uri.getQueryParameter("url").toString().replace("http://https://", "https://")
)
return
}
if (host == "tieba.baidu.com" && path.startsWith("/p/")) {
context.goToActivity<ThreadActivity> {
putExtra("url", url)