feat: 【V5.16.0】启动广告图—客户端 https://jira.shanqu.cc/browse/GHZS-16

This commit is contained in:
张玉久
2022-11-08 15:03:10 +08:00
parent 9ee743c14f
commit 0e16aa7dd4
16 changed files with 327 additions and 87 deletions

View File

@ -8,6 +8,7 @@ import android.text.TextUtils;
import androidx.annotation.Nullable;
import com.gh.common.util.AdHelper;
import com.gh.gamecenter.common.utils.DarkModeUtils;
import com.gh.gamecenter.common.utils.EnvHelper;
import com.gh.gamecenter.common.constant.Constants;
@ -195,6 +196,7 @@ public class Config {
public static void setSettings(SettingsEntity settingsEntity) {
getPreferences().edit().putString(SETTINGS_KEY, GsonUtils.toJson(settingsEntity)).apply();
mSettingsEntity = settingsEntity;
AdHelper.prefetchStartUpAd(settingsEntity);
// 更新设置状态
mSettingsEntity.showArticleEntrance();