pull/2729/head
kunfei 2 years ago
parent ece0c65612
commit 4653ee8a2a
  1. 4
      app/src/main/java/io/legado/app/service/DownloadService.kt

@ -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)}")
}
}
}

Loading…
Cancel
Save