细节修复、部分bug修复

This commit is contained in:
huangzhuanghua
2016-09-20 18:29:19 +08:00
parent 471afcf0be
commit 384af8a9db
34 changed files with 1176 additions and 1480 deletions

View File

@ -648,7 +648,7 @@ public class DownloadDialog {
String path = entryMap.get(apkEntity.getUrl()).getPath();
if (FileUtils.isEmptyFile(path)) {
Toast.makeText(context, "解析包错误", Toast.LENGTH_SHORT).show();
Toast.makeText(context, "解析包出错(可能被误删了),请重新下载", Toast.LENGTH_SHORT).show();
entryMap.remove(apkEntity.getUrl());
DownloadManager.getInstance(context).cancel(apkEntity.getUrl());
adapter.notifyItemChanged(location);
@ -968,7 +968,7 @@ public class DownloadDialog {
final String path = entryMap.get(apkEntity.getUrl()).getPath();
if (FileUtils.isEmptyFile(path)) {
Toast.makeText(context, "解析包错误", Toast.LENGTH_SHORT).show();
Toast.makeText(context, "解析包出错(可能被误删了),请重新下载", Toast.LENGTH_SHORT).show();
entryMap.remove(apkEntity.getUrl());
DownloadManager.getInstance(context).cancel(apkEntity.getUrl());
notifyItemChanged(position);