下载管理相关优化

This commit is contained in:
chenjuntao
2021-08-21 10:57:45 +08:00
parent 9c044ae98b
commit 1d9e1bc9d8
74 changed files with 1763 additions and 118 deletions

View File

@ -209,11 +209,11 @@ public class UpdateManager {
loadingDialog = DialogUtils.showWaitDialog(mContext, "检查更新中...");
}
String channel = HaloApp.getInstance().getChannel();
RetrofitManager.getInstance(mContext).getApi().getUpdate(PackageUtils.getVersionName(), PackageUtils.getVersionCode(), channel)
RetrofitManager.getInstance(mContext).getApi().getUpdate(PackageUtils.getGhVersionName(), PackageUtils.getGhVersionCode(), channel)
.map(appEntity -> {
boolean isShowUpdateDialog = false;
if (appEntity.getVersionCode() > PackageUtils.getVersionCode()) {
if (appEntity.getVersionCode() > PackageUtils.getGhVersionCode()) {
// 助手有更新
UpdateManager.this.appEntity = appEntity;
@ -554,11 +554,11 @@ public class UpdateManager {
}
private String getUpdateOnceOnlySpKey() {
return "UPDATE_ONCE_ONLY_KEY" + PackageUtils.getVersionCode();
return "UPDATE_ONCE_ONLY_KEY" + PackageUtils.getGhVersionCode();
}
private String getUpdateOnceOnlySecondSpKey() {
return "UPDATE_ONCE_ONLY_SECOND_KEY" + PackageUtils.getVersionCode();
return "UPDATE_ONCE_ONLY_SECOND_KEY" + PackageUtils.getGhVersionCode();
}
}