下载管理相关优化

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

@ -203,7 +203,7 @@ public class MainActivity extends BaseActivity {
mSp = PreferenceManager.getDefaultSharedPreferences(this);
isNewFirstLaunch = mSp.getBoolean("isNewFirstLaunchV" + PackageUtils.getVersionName(), true);
isNewFirstLaunch = mSp.getBoolean("isNewFirstLaunchV" + PackageUtils.getGhVersionName(), true);
if (isNewFirstLaunch) {
final LunchType lunchType = DeviceTokenUtils.getLaunchType();
// 延时两秒提交,避免提交时还没获取到 GID/OAID
@ -214,12 +214,11 @@ public class MainActivity extends BaseActivity {
// 第一次打开App删除模拟器游戏记录不包括更新版本
if (HaloApp.getInstance().isBrandNewInstall) {
SimulatorGameManager.deleteAllSimulatorGame();
}
}
}, 2000L);
getPluginUpdate();
mSp.edit().putBoolean("isNewFirstLaunchV" + PackageUtils.getVersionName(), false).apply();
mSp.edit().putBoolean("isNewFirstLaunchV" + PackageUtils.getGhVersionName(), false).apply();
checkDevice(); // 根据设备信息判断用户是否是新用户
}