修复部分bug

This commit is contained in:
kehaoyuan
2017-06-13 09:25:40 +08:00
parent 8b46435808
commit a55a969588
12 changed files with 44 additions and 58 deletions

View File

@ -375,7 +375,7 @@ public class DownloadDialog implements OnCollectionCallBackListener {
}
// 接收安装成功的消息,更新界面
@Subscribe(threadMode = ThreadMode.BACKGROUND)
@Subscribe(threadMode = ThreadMode.MAIN)
public void onEvent(EBPackage busFour) {
if ("安装".equals(busFour.getType())) {
adapter.removeDownloadEntityByPackageName(busFour.getPackageName());
@ -391,7 +391,7 @@ public class DownloadDialog implements OnCollectionCallBackListener {
}
//接收下载被删除消息
@Subscribe(threadMode = ThreadMode.BACKGROUND)
@Subscribe(threadMode = ThreadMode.MAIN)
public void onEvent(EBDownloadStatus status) {
if ("delete".equals(status.getStatus())) {
String url = status.getUrl();
@ -404,7 +404,7 @@ public class DownloadDialog implements OnCollectionCallBackListener {
}
// 接收platform数据改变消息更新界面
@Subscribe(threadMode = ThreadMode.BACKGROUND)
@Subscribe(threadMode = ThreadMode.MAIN)
public void onEvent(EBReuse reuse) {
if ("PlatformChanged".equals(reuse.getType())) {
DownloadManager.getInstance(mContext).removeObserver(dataWatcher);