优化obu升级逻辑

This commit is contained in:
lixiaopeng
2023-02-24 17:32:37 +08:00
parent 8275d7f192
commit d058bcace0
8 changed files with 34 additions and 30 deletions

View File

@@ -75,7 +75,6 @@ public class DownloadTask implements DownloadCallBack {
}
downloadCallBack.startDownload(fileBean.getUrl());
Log.d(DOWN_LOAD_TAG, " 开始下载:" + finishedProgress);
Log.d("liyz", " DownloadTask 开始下载:" + finishedProgress + "---fileBean.getUrl() = " + fileBean.getUrl());
}
/**
@@ -145,7 +144,6 @@ public class DownloadTask implements DownloadCallBack {
}
if (threads.size() == 0) {//如果列表size为0 则所有线程已下载完成
Log.d(DOWN_LOAD_TAG, " DownloadTask threadDownLoadFinished 下载完成----->");
Log.d("liyz", "threadDownLoadFinished ------------ 下载完成-----> ");
//删除数据库中的信息
dao.deleteThread(fileBean.getUrl());
//发送下载完成事件

View File

@@ -77,7 +77,6 @@ public class DownloadThread extends Thread {
}
} catch (Exception e) {
Log.e("liyz", "DownloadThread ---1---- e = " + e);
e.printStackTrace();
DownloadData downloadData = new DownloadData();
downloadData.setUrl(fileBean.getUrl());