mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -120,10 +120,8 @@ class DownloadService : BaseService() {
|
||||
if (!completeDownloads.contains(downloadId)) {
|
||||
completeDownloads.add(downloadId)
|
||||
val fileName = downloads[downloadId]?.second
|
||||
if (fileName?.endsWith(".apk") == true) {
|
||||
kotlin.runCatching {
|
||||
openDownload(downloadId, fileName)
|
||||
} else {
|
||||
toastOnUi("$fileName ${getString(R.string.download_success)}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user