补充更新下载头 META 的位置

This commit is contained in:
juntao
2020-11-25 14:30:19 +08:00
parent 84bcc481af
commit f32dc628ef
3 changed files with 6 additions and 25 deletions

View File

@ -150,6 +150,8 @@ public class DownloadManager implements DownloadStatusListener {
// 只有下载模块需要这坨东西,因此移动到这里初始化
ConnectionUtils.initHttpsUrlConnection(context);
updateMetaMap();
// DownloadNotification.showDownloadingNotification(mContext);
lastTimeMap = new ArrayMap<>();
@ -292,8 +294,6 @@ public class DownloadManager implements DownloadStatusListener {
downloadEntity.setUpdate(true);
}
updateMetaMap();
downloadEntity.setPlugin(!TextUtils.isEmpty(apkEntity.getGhVersion()));
ExposureUtils.DownloadType downloadType = ExposureUtils.getDownloadType(apkEntity, gameEntity.getId());
@ -340,6 +340,8 @@ public class DownloadManager implements DownloadStatusListener {
* @param downloadEntity
*/
public void add(DownloadEntity downloadEntity) {
updateMetaMap();
if (downloadEntity != null) {
String url = downloadEntity.getUrl();
checkDownloadEntryRecordValidate(url);
@ -397,6 +399,8 @@ public class DownloadManager implements DownloadStatusListener {
* @param downloadEntity
*/
public void subscribe(DownloadEntity downloadEntity) {
updateMetaMap();
if (downloadEntity != null) {
String url = downloadEntity.getUrl();
checkDownloadEntryRecordValidate(url);