游戏详情接入游戏推荐(大家都在玩),优化代码

This commit is contained in:
khy
2017-04-26 15:34:58 +08:00
parent 5798ba9e89
commit a0cae1b7b8
39 changed files with 601 additions and 1099 deletions

View File

@ -258,6 +258,14 @@ public class UpdateManager {
if (appEntity != null && appEntity.isForce()) {
AppController.getInstance().finishActivity();
}
} else if (DownloadStatus.neterror.equals(downloadEntity.getStatus())) {
Utils.toast(context, "网络错误,请稍后重试");
} else if (DownloadStatus.timeout.equals(downloadEntity.getStatus())) {
Utils.toast(context, "请求超时,请稍后重试");
} else if (DownloadStatus.notfound.equals(downloadEntity.getStatus())) {
Utils.toast(context, "下载链接异常,请稍后重试");
} else if (DownloadStatus.hijack.equals(downloadEntity.getStatus())) {
Utils.toast(context, "网络劫持,请稍后重试");
}
}
}