Commit 7be3137e authored by wanglei's avatar wanglei

...

parent 472c102f
......@@ -25,7 +25,7 @@ object AdmobBannerUtils {
fun showCollapsibleBannerAd(context: Context, parent: ViewGroup, adClose: (() -> Unit)? = null) {
val isShowBanner = AppPreferences.getInstance().getString("isShowBanner", "0").toInt()
if (isShowBanner == 0 ) {
if (isShowBanner == 0) {
return
}
......@@ -35,6 +35,9 @@ object AdmobBannerUtils {
adView = null
adView = AdView(context)
// adView?.apply {
// onPaidEventListener = AdmobEvent.EventOnPaidEventListener(this)
// }
parent.addView(adView)
listener = ViewTreeObserver.OnGlobalLayoutListener {
......
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