Commit 21e336db authored by wanglei's avatar wanglei

...广告保护逻辑

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