下载管理相关优化
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user