Commit 775ea5be authored by maxiaoliang's avatar maxiaoliang

修改报错

parent 2c78df18
......@@ -16,6 +16,7 @@ import com.base.datarecovery.help.BaseApplication
import com.base.datarecovery.help.ConfigHelper
import com.base.datarecovery.utils.EventUtils
import com.base.datarecovery.utils.LogEx
import com.ironsource.ac
import org.json.JSONObject
object AdMaxNativeUtils {
......@@ -126,7 +127,7 @@ object AdMaxNativeUtils {
nativeAdLoader.render(adView, nativeAd)
parent.removeAllViews()
parent.addView(adView)
nativeAd?.let { AdMaxEvent.showAd(it, "nativeAd") }
nativeAd?.let { AdMaxEvent.showAd(it, "nativeAd",activity) }
AdDisplayUtils.getInstance().incrementAdDisplayCount()
}
}
......
......@@ -42,7 +42,7 @@ object AdMaxOpenUtils {
override fun onAdDisplayed(p0: MaxAd) {
AdDisplayUtils.getInstance().incrementAdDisplayCount()
AdMaxEvent.showAd(p0,"openAd")
AdMaxEvent.showAd(p0,"openAd",Activity())
}
override fun onAdHidden(p0: MaxAd) {
......
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