fix: 修复链接无法正常在外置浏览器打开
This commit is contained in:
parent
9482abb791
commit
2559b3864d
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue