Commit 5a87a336 authored by mengcuiguang2's avatar mengcuiguang2

开屏时间改为5秒

parent e853fb0e
......@@ -10,8 +10,8 @@ android {
applicationId "com.duben.speedplayletu"
minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode 718
versionName "7.1.8"
versionCode 719
versionName "7.1.9"
flavorDimensions "default"
// dex突破65535的限制
......
......@@ -24,7 +24,7 @@ object SplashManager {
// 兜底配置
val pangleSplashBottom = object :
MediationSplashRequestInfo(
MediationConstant.ADN_PANGLE, "888403155",
MediationConstant.ADN_PANGLE, "889457860",
BuildConfig.GROMORE_APP_ID, ""
) {} //ok
......@@ -56,7 +56,7 @@ object SplashManager {
)
.setMediationAdSlot(
MediationAdSlot.Builder()
// .setMediationSplashRequestInfo(pangleSplashBottom)
.setMediationSplashRequestInfo(pangleSplashBottom)
.build()
)
.build()
......@@ -77,6 +77,8 @@ object SplashManager {
override fun onSplashAdLoad(p0: TTSplashAd?) {
LogUtil.d(TAG, "gromore 开屏广告--> 3、Gromore onSplashAdLoadSuccess")
LogUtil.d("SplashNewActivity-->", "333333--> ad show")
isLoadSuccess = 2
mTTSplashAd = p0
}
......
......@@ -36,7 +36,7 @@ class SplashActivity : BaseActivity() {
var powerDialog: PowerDialog? = null
var powerDialog2: PowerDialog2? = null
private var mProgressBar: CycleProgress? = null
private val AD_TIME_OUT = 3000
private val AD_TIME_OUT = 5000
var timer: CountDownTimerSupport? = null
private var isAdSuc = false
......@@ -94,9 +94,11 @@ class SplashActivity : BaseActivity() {
timer = CountDownTimerSupport(AD_TIME_OUT.toLong(), 1000)
timer!!.setOnCountDownTimerListener(object : OnCountDownTimerListener {
override fun onTick(millisUntilFinished: Long) {
LogUtil.d("SplashNewActivity-->", "111-->"+millisUntilFinished)
// 第一次安装时,延迟加载开屏广告,因为广告sdk还未初始化完成
val firstSplash = get().getBoolean(Constant.FIRST_SPLASH, true)
if (firstSplash && millisUntilFinished == (AD_TIME_OUT - 2000).toLong()) {
if (firstSplash && millisUntilFinished == (AD_TIME_OUT - 1000).toLong()) {
LogUtil.d("SplashNewActivity-->", "222-->"+millisUntilFinished)
SplashManager.preLoadAd(this@SplashActivity)
get().put(Constant.FIRST_SPLASH, false)
}
......
......@@ -20,7 +20,7 @@ import com.duben.speedplayletu.utils.BubbleUtils;
@SuppressLint("DrawAllocation")
public class CycleProgress extends View {
private static final long DURATION = 300;
private static final long DURATION = 400;
private int mViewWidth;
private int mViewHeight;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment