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