Commit 21e336db authored by wanglei's avatar wanglei

...广告保护逻辑

parent 8f2aafeb
......@@ -42,7 +42,9 @@
<service
android:name=".service.StayJobService"
android:foregroundServiceType="dataSync" />
android:exported="false"
android:foregroundServiceType="dataSync"
android:permission="android.permission.BIND_JOB_SERVICE" />
<meta-data
......
......@@ -31,6 +31,7 @@ class AdOpenMgr {
if (adState.showingAd) {
showCallBack?.failed()
adEvent.adShowError("showingAd")
adState.showingAd = false
return
}
if (showCallBack != null) {
......@@ -78,7 +79,7 @@ class AdOpenMgr {
showCallBack?.googleFailed()
showCallBack = null
adState.onAdDisplayed()
adState.onAdDisplayFailed()
(adEvent as AdmobEvent).adShowError(adError)
......
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