Commit 0440b3df authored by wanglei's avatar wanglei

Merge branch 'free-master' of gitlab.huolea.com:koko/easy-junk-cleaner-6-18 into free-master

parents d57d5a82 6bb87e01
......@@ -282,6 +282,7 @@ object AdmobUtils {
fun showInterstitialAd(
activity: Activity,
isLoadAdNow: Boolean = false,
isShowInterVal :Boolean =true,
onHidden: (() -> Unit)? = null
) {
if (activity.isFinishing || activity.isDestroyed) {
......@@ -307,7 +308,7 @@ object AdmobUtils {
}
val interval = isTimeElapsed()
if (interval <= 0) {
if (interval <= 0||!isShowInterVal) {
showCachedInterstitialAd(activity, isLoadAdNow, onHidden)
} else {
showIntervalDialogAndShowAd(activity, isLoadAdNow, onHidden, interval)
......
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