Commit f9dc4efb authored by wanglei's avatar wanglei

[拆包]修复问题

parent 6b50e701
...@@ -110,11 +110,10 @@ class AdNativeMgr { ...@@ -110,11 +110,10 @@ class AdNativeMgr {
cacheItems.clear() cacheItems.clear()
} }
parent.isAdShowed = true
val nativeAd = cacheItems.peek() val nativeAd = cacheItems.peek()
var showAction: (ad: NativeAd) -> Unit = { ad -> var showAction: (ad: NativeAd) -> Unit = { ad ->
parent.isAdShowed = true
nativeCallBack?.invoke(ad) nativeCallBack?.invoke(ad)
parent.setNativeAd(ad, layout) parent.setNativeAd(ad, layout)
admobEvent.showAd(ad.responseInfo) admobEvent.showAd(ad.responseInfo)
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
app:cardElevation="0dp"
android:layout_marginHorizontal="@dimen/dp_16" android:layout_marginHorizontal="@dimen/dp_16"
app:cardBackgroundColor="@color/white" app:cardBackgroundColor="@color/white"
app:cardCornerRadius="@dimen/dp_8"> app:cardCornerRadius="@dimen/dp_8">
......
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