|
|
@ -120,10 +120,8 @@ class DownloadService : BaseService() { |
|
|
|
if (!completeDownloads.contains(downloadId)) { |
|
|
|
if (!completeDownloads.contains(downloadId)) { |
|
|
|
completeDownloads.add(downloadId) |
|
|
|
completeDownloads.add(downloadId) |
|
|
|
val fileName = downloads[downloadId]?.second |
|
|
|
val fileName = downloads[downloadId]?.second |
|
|
|
if (fileName?.endsWith(".apk") == true) { |
|
|
|
kotlin.runCatching { |
|
|
|
openDownload(downloadId, fileName) |
|
|
|
openDownload(downloadId, fileName) |
|
|
|
} else { |
|
|
|
|
|
|
|
toastOnUi("$fileName ${getString(R.string.download_success)}") |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|