fix:启动广告图相关优化—0731验收问题-客户端 https://jira.shanqu.cc/browse/GHZSCY-6396
This commit is contained in:
@ -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));
|
||||
|
||||
Reference in New Issue
Block a user