项目整理
This commit is contained in:
@ -866,7 +866,7 @@ public class DownloadDialog {
|
||||
kv6.put("操作", "点击安装完成");
|
||||
DataUtils.onEvent(context, "插件化", downloadEntry.getName(), kv6);
|
||||
}
|
||||
String path = entryMap.get(apkEntity.getUrl())
|
||||
final String path = entryMap.get(apkEntity.getUrl())
|
||||
.getPath();
|
||||
if (FileUtils.isEmptyFile(path)) {
|
||||
Toast.makeText(context, "解析包错误",
|
||||
@ -882,7 +882,15 @@ public class DownloadDialog {
|
||||
context.startActivity(PackageUtils
|
||||
.getInstallIntent(path));
|
||||
} else {
|
||||
DialogUtils.showDialog(context, path);
|
||||
DialogUtils.showUninstallDialog(context, new DialogUtils.ConfiremListener() {
|
||||
@Override
|
||||
public void onConfirem() {
|
||||
MainActivity.uninstallMap.put(
|
||||
PackageUtils.getPackageNameByPath(context, path), path);
|
||||
context.startActivity(PackageUtils.getUninstallIntent(context,
|
||||
path));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
} else if ("等待".equals(status)) {
|
||||
|
||||
Reference in New Issue
Block a user