修改插件化提示框显示位置为所有界面,修复卸载后不自动跳安装bug,修复下载量超100%bug,添加打包渠道106

This commit is contained in:
huangzhuanghua
2016-07-22 13:57:11 +08:00
parent 8eca878a8b
commit f74ae2a8cf
16 changed files with 86 additions and 87 deletions

View File

@ -847,7 +847,7 @@ public class DownloadDialog {
context.startActivity(PackageUtils
.getInstallIntent(path));
} else {
DialogUtils.showUninstallDialog(context, new DialogUtils.ConfiremListener() {
DialogUtils.showPluginDialog(context, new DialogUtils.ConfiremListener() {
@Override
public void onConfirem() {
MainActivity.uninstallMap.put(
@ -855,7 +855,7 @@ public class DownloadDialog {
context.startActivity(PackageUtils.getUninstallIntent(context,
path));
}
});
}, null);
}
}
} else if ("等待".equals(status)) {
@ -943,6 +943,10 @@ public class DownloadDialog {
|| "pause".equals(statusMap.get(downloadEntry
.getUrl()))) {
viewHolder.download_item_tv_status.setText("继续");
} else if (downloadEntry.getStatus().equals(
DownloadStatus.timeout) || downloadEntry.getStatus().equals(
DownloadStatus.neterror)) {
viewHolder.download_item_tv_status.setText("继续");
} else {
viewHolder.download_item_tv_status.setText("插件下载中");
}
@ -953,6 +957,10 @@ public class DownloadDialog {
} else if (downloadEntry.getStatus().equals(
DownloadStatus.pause)) {
viewHolder.download_item_tv_status.setText("继续");
} else if (downloadEntry.getStatus().equals(
DownloadStatus.timeout) || downloadEntry.getStatus().equals(
DownloadStatus.neterror)) {
viewHolder.download_item_tv_status.setText("继续");
} else {
viewHolder.download_item_tv_status.setText("更新中");
}