mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
58a9bcaee1
commit
a1eb874cc2
@ -49,8 +49,8 @@ class OnLineImportActivity :
|
||||
finallyDialog(getString(R.string.error), it)
|
||||
}
|
||||
intent.data?.let {
|
||||
val url = it.query?.substringAfter("src=")
|
||||
if (url.isNullOrBlank()) {
|
||||
val url = it.toString().substringAfter("src=", "")
|
||||
if (url.isEmpty()) {
|
||||
finish()
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user