补充礼物包裹的下载
This commit is contained in:
@@ -102,10 +102,16 @@ public class GiftCacheUtil {
|
||||
* 设置下载列表
|
||||
*/
|
||||
public void setDownloadList(List<LiveGiftBean> list) {
|
||||
downloadCache.clear();
|
||||
for (LiveGiftBean bean : list) {
|
||||
downloadCache.put(bean.getId(), bean);
|
||||
}
|
||||
}
|
||||
public void addDownloadList(List<LiveGiftBean> list){
|
||||
for (LiveGiftBean bean : list) {
|
||||
downloadCache.put(bean.getId(),bean);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置监听回调
|
||||
@@ -240,7 +246,7 @@ public class GiftCacheUtil {
|
||||
break;
|
||||
}
|
||||
if(downloadCache.isEmpty()){
|
||||
downloading = false;
|
||||
resetStatus();
|
||||
}
|
||||
}).start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user