feat: 重构限制主进程执行的相关代码

This commit is contained in:
chenjuntao
2024-04-12 14:52:46 +08:00
parent 81c8469e7b
commit ec6ad35ade
21 changed files with 197 additions and 212 deletions

View File

@ -125,9 +125,7 @@ public class DataUtils {
HaloApp.getInstance().setGid(gid);
// 更新广告配置
ExtensionsKt.doOnMainProcessOnly(HaloApp.getInstance(), () -> {
AdDelegateHelper.INSTANCE.requestAdConfig(false, "", null);
});
AdDelegateHelper.INSTANCE.requestAdConfig(false, "", null);
getDeviceCertification(gid);
@ -147,11 +145,8 @@ public class DataUtils {
@Override
public void onFailure(String s) {
MtaHelper.onEventWithBasicDeviceInfo("开发辅助", "GID 获取异常", s);
// 更新广告配置
ExtensionsKt.doOnMainProcessOnly(HaloApp.getInstance(), () -> {
AdDelegateHelper.INSTANCE.requestAdConfig(false, "", null);
});
AdDelegateHelper.INSTANCE.requestAdConfig(false, "", null);
}
});
}