细节修复、部分bug修复
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user