fix:启动广告图相关优化—0731验收问题-客户端 https://jira.shanqu.cc/browse/GHZSCY-6396

This commit is contained in:
张晨
2024-08-01 11:14:28 +08:00
parent 2300475a9e
commit 5640d778a2
2 changed files with 7 additions and 2 deletions

View File

@ -509,6 +509,10 @@ public class MainActivity extends BaseActivity {
if (startAdContainer != null && sdkStartAdContainer != null && adsFl != null) {
mCountdownMaxCount = AdDelegateHelper.INSTANCE.getSplashAdDisplayInterval();
TextView jumpBtn = findViewById(R.id.jumpBtn);
if (jumpBtn != null) {
jumpBtn.setText(getString(R.string.splash_jump, mCountdownMaxCount));
}
AdDelegateHelper.requestSplashAd(
this,
screenWidthInPx,
@ -538,7 +542,7 @@ public class MainActivity extends BaseActivity {
super.handleMessage(msg);
if (msg.what == COUNTDOWN_AD) {
mCountdownCount++;
if (mCountdownMaxCount < mCountdownCount) {
if (mCountdownMaxCount <= mCountdownCount) {
AdDelegateHelper.INSTANCE.setShowingSplashAd(false);
hideSplashAd();
@ -746,7 +750,7 @@ public class MainActivity extends BaseActivity {
ToastUtils.showToast("游戏启动中,请稍后~");
handler.postDelayed(() -> {
if(VHelper.isInnerInstalled(gamePackageName)) {
if (VHelper.isInnerInstalled(gamePackageName)) {
launchGame(gamePackageName).invoke();
} else {
VHelper.postOnInitialized(launchGame(gamePackageName));