处理 Sonar 代码问题

This commit is contained in:
juntao
2022-01-18 10:14:23 +08:00
parent 8afba620f8
commit 0c6ace909e
4 changed files with 18 additions and 16 deletions

View File

@ -114,7 +114,7 @@ public class SplashScreenActivity extends BaseActivity {
long ghLastUpdateTime = SPUtils.getLong(Constants.SP_GH_LAST_UPDATE_TIME, 0);
if (ghLastUpdateTime != 0
&& ghLastUpdateTime != PackageUtils.getHaloLastUpdateTime()) {
HaloApp.getInstance().isReinstallTheSameVersion = true;
HaloApp.getInstance().setIsReinstallTheSameVersion(true);
}
}
@ -309,7 +309,7 @@ public class SplashScreenActivity extends BaseActivity {
SPUtils.setString(Constants.SP_TEMPORARY_DEVICE_ID, localTemporaryDeviceId);
}
map.put("launch_type", DeviceTokenUtils.getLaunchType().name());
} else if (HaloApp.getInstance().isReinstallTheSameVersion) {
} else if (HaloApp.getInstance().isReinstallTheSameVersion()) {
map.put("launch_type", LunchType.UPDATE.toString());
}