V3.0.1优化完成 补丁安装完成要出现弹窗提示->还没测试
This commit is contained in:
@ -61,6 +61,8 @@ import com.lightgame.download.DownloadEntity;
|
||||
import com.lightgame.download.DownloadStatus;
|
||||
import com.lightgame.download.FileUtils;
|
||||
import com.lightgame.utils.Utils;
|
||||
import com.tencent.bugly.beta.Beta;
|
||||
import com.tencent.bugly.beta.UpgradeInfo;
|
||||
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
import org.greenrobot.eventbus.Subscribe;
|
||||
@ -681,6 +683,21 @@ public class MainActivity extends BaseActivity {
|
||||
}, null);
|
||||
}
|
||||
|
||||
checkTinkerPath();
|
||||
}
|
||||
|
||||
private void checkTinkerPath() {
|
||||
UpgradeInfo upgradeInfo = Beta.getUpgradeInfo();
|
||||
if (upgradeInfo != null) {
|
||||
String newPatchVN = upgradeInfo.versionName;
|
||||
String oldPatchVN = sp.getString("patchVersionName", "");
|
||||
if (!oldPatchVN.equals(newPatchVN)) {
|
||||
DialogUtils.showWarningDialog(this, "补丁更新成功"
|
||||
, "光环助手已成功更新到V" + PackageUtils.getPatchVersionName()
|
||||
, null, "知道了", null, null);
|
||||
sp.edit().putString("patchVersionName", newPatchVN).apply();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user