游戏详情接入游戏推荐(大家都在玩),优化代码
This commit is contained in:
@ -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, "网络劫持,请稍后重试");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user