Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ class DownloadService : Service(), OnDownloadListener {
* Check whether the Apk has been downloaded, don't download again
*/
private fun checkApkMd5(): Boolean {
if (manager.apkMD5.isNullOrBlank()) {
return false;
}
val file = File(manager.downloadPath, manager.apkName)
if (file.exists()) {
return FileUtil.md5(file).equals(manager.apkMD5, ignoreCase = true)
Expand Down