光环助手V3.5优化需求汇总(20181007)https://gitlab.ghzhushou.com/pm/halo-app-issues/issues/357

This commit is contained in:
kehaoyuan
2018-10-10 15:46:36 +08:00
parent 8bb852e2ff
commit 1348a58175
18 changed files with 112 additions and 49 deletions

View File

@ -32,6 +32,7 @@ import com.gh.gamecenter.manager.FilterManager;
import com.gh.gamecenter.user.UserRepository;
import com.gh.gid.GidCallback;
import com.gh.gid.GidHelper;
import com.lightgame.download.DownloadEntity;
import com.lightgame.download.FileUtils;
import com.lightgame.utils.AppManager;
import com.lightgame.utils.Utils;
@ -114,6 +115,15 @@ public class SplashScreenActivity extends BaseActivity {
if (isNewFirstLaunch) {
setTheme(R.style.AppGuideTheme);
// 删除更新后的光环助手包
List<DownloadEntity> all = DownloadManager.getInstance(this).getAll();
for (DownloadEntity downloadEntity : all) {
if (downloadEntity.getPackageName().equals(getPackageName())) {
DownloadManager.getInstance(this).cancel(downloadEntity.getUrl(), true);
break;
}
}
} else {
setTheme(R.style.AppFullScreenTheme);
}