Commit 4726b08a authored by jyx's avatar jyx

修改首页信息流每9个展示一次

parent 882bdd8c
......@@ -44,7 +44,7 @@ class MainExpressManager {
val adNativeLoader = TTAdSdk.getAdManager().createAdNative(activity)
val adslot = AdSlot.Builder()
.setCodeId(BuildConfig.GROMORE_MAIN_EXPRESS_CODE)
.setCodeId(BuildConfig.GROMORE_EXPRESS_CODE)
/**
* 注:
* 1:单位为px
......
......@@ -165,13 +165,13 @@ class MovieFragment : LazyLoadBaseFragment(), PicContentView, OnLoadMoreListener
}
private fun addAdView(adView: FrameLayout) {
// 默认每各6个加1个
var insertIndex = 2
// 默认每各9个加1个
var insertIndex = 3
val allData = hotStyleAdapter.data
for (i in allData.size - 1 downTo 0) {
if (allData[i].itemType == MULTI_ITEM_3) {
insertIndex += 3
insertIndex += 4
}
}
if (insertIndex >= allData.size) {
......
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