Commit 65352847 authored by wanglei's avatar wanglei

...

parent 5e06a16d
...@@ -39,29 +39,24 @@ ...@@ -39,29 +39,24 @@
</intent-filter> </intent-filter>
</activity> </activity>
<activity <activity
android:name=".activity.junkclean.ScanJunkActivity" android:name=".activity.repeat.RepeatAnimationActivity"
android:exported="false" android:exported="true"
android:launchMode="singleTop" android:launchMode="singleTop"
android:screenOrientation="portrait" android:screenOrientation="portrait"
tools:ignore="DiscouragedApi,LockedOrientationActivity"> tools:ignore="DiscouragedApi,LockedOrientationActivity" />
<!-- <intent-filter>-->
<!-- <action android:name="android.intent.action.MAIN" />-->
<!-- <category android:name="android.intent.category.LAUNCHER" />-->
<!-- </intent-filter>-->
</activity>
<activity <activity
android:name=".activity.guide.GuideActivity" android:name=".activity.junkclean.ScanJunkActivity"
android:exported="true" android:exported="false"
android:launchMode="singleTop" android:launchMode="singleTop"
android:screenOrientation="portrait" android:screenOrientation="portrait"
tools:ignore="DiscouragedApi,LockedOrientationActivity" /> tools:ignore="DiscouragedApi,LockedOrientationActivity" />
<activity <activity
android:name=".activity.repeat.RepeatAnimationActivity" android:name=".activity.guide.GuideActivity"
android:exported="false" android:exported="true"
android:launchMode="singleTop" android:launchMode="singleTop"
android:screenOrientation="portrait" android:screenOrientation="portrait"
tools:ignore="DiscouragedApi,LockedOrientationActivity" /> tools:ignore="DiscouragedApi,LockedOrientationActivity" />
<activity <activity
android:name=".activity.SettingActivity" android:name=".activity.SettingActivity"
android:exported="false" android:exported="false"
......
...@@ -42,7 +42,10 @@ object AdMaxInterstitialUtils { ...@@ -42,7 +42,10 @@ object AdMaxInterstitialUtils {
interstitialAd?.setListener(object : MaxAdListener { interstitialAd?.setListener(object : MaxAdListener {
override fun onAdLoaded(p0: MaxAd) { override fun onAdLoaded(p0: MaxAd) {
LogEx.logDebug(TAG, "onAdLoaded") LogEx.logDebug(TAG, "onAdLoaded")
loadingListener?.invoke() loadingListener?.invoke()
loadingListener = null
interLoadTime = System.currentTimeMillis() interLoadTime = System.currentTimeMillis()
retryAttempt = 0 retryAttempt = 0
val reqId = UUID.randomUUID().toString() val reqId = UUID.randomUUID().toString()
...@@ -60,8 +63,6 @@ object AdMaxInterstitialUtils { ...@@ -60,8 +63,6 @@ object AdMaxInterstitialUtils {
customDialog?.dismiss() customDialog?.dismiss()
onHidden?.invoke() onHidden?.invoke()
retryAttempt = 0 retryAttempt = 0
} else {
// interstitialAd?.loadAd()
} }
} }
...@@ -126,6 +127,7 @@ object AdMaxInterstitialUtils { ...@@ -126,6 +127,7 @@ object AdMaxInterstitialUtils {
obj1.put("ad_unit", "interAd") obj1.put("ad_unit", "interAd")
EventUtils.event("ad_prepare_show", ext = obj1) EventUtils.event("ad_prepare_show", ext = obj1)
this.onHidden = null
this.onHidden = onHidden this.onHidden = onHidden
if (interstitialAd?.isReady == true) { if (interstitialAd?.isReady == true) {
LogEx.logDebug(TAG, "有缓存直接播放。") LogEx.logDebug(TAG, "有缓存直接播放。")
...@@ -159,7 +161,6 @@ object AdMaxInterstitialUtils { ...@@ -159,7 +161,6 @@ object AdMaxInterstitialUtils {
loadingListener = { loadingListener = {
customDialog?.dismiss() customDialog?.dismiss()
interstitialAd?.showAd(activity) interstitialAd?.showAd(activity)
loadingListener = null
} }
} }
......
...@@ -52,6 +52,7 @@ object AdMaxOpenUtils { ...@@ -52,6 +52,7 @@ object AdMaxOpenUtils {
override fun onAdHidden(p0: MaxAd) { override fun onAdHidden(p0: MaxAd) {
onHidden?.invoke() onHidden?.invoke()
onHidden = null
loadAppOpenAd(activity) loadAppOpenAd(activity)
loadingListener = null loadingListener = null
} }
......
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