fix: 修复线上闪退问题 https://jira.shanqu.cc/browse/GHZS-2946
This commit is contained in:
@ -198,7 +198,6 @@ public class MainActivity extends BaseActivity {
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
showAd = getIntent().getBooleanExtra(SHOW_AD, false) && savedInstanceState == null;
|
||||
|
||||
HaloApp.getInstance().initFresco();
|
||||
HaloApp.getInstance().isAlreadyUpAndRunning = true;
|
||||
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
@ -150,7 +150,7 @@ object VArchiveHelper {
|
||||
if (isSuccess) {
|
||||
val vGameEntity = VHelper.getVGameSnapshot(packageName = packageName)
|
||||
runOnIoThread {
|
||||
val fileMd5 = MD5Utils.calculateMD5(mLatestArchiveFile)
|
||||
val fileMd5 = MD5Utils.calculateMD5(mLatestArchiveFile) ?: return@runOnIoThread
|
||||
val vArchiveEntity = VArchiveEntity(
|
||||
id = fileMd5,
|
||||
gameId = vGameEntity?.downloadEntity?.gameId ?: "",
|
||||
|
||||
@ -227,12 +227,12 @@ public class HaloApp extends MultiDexApplication {
|
||||
PlayerFactory.setPlayManager(Exo2PlayerManager.class);
|
||||
CacheFactory.setCacheManager(ExoPlayerCacheManager.class);
|
||||
|
||||
initFresco();
|
||||
|
||||
AppExecutor.getIoExecutor().execute(() -> {
|
||||
initDataHelper();
|
||||
ExtensionsKt.doOnMainProcessOnly(this, () -> Tracker.init(this));
|
||||
|
||||
initFresco();
|
||||
|
||||
deviceRamSize = DeviceUtils.getTotalRamSizeOfDevice(this);
|
||||
mChannel = mFlavorProvider.getChannelStr(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user