下载管理相关优化
This commit is contained in:
@ -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(); // 根据设备信息判断用户是否是新用户
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user