补充更新下载头 META 的位置
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user