mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user