Commit 1002a61b by 徐健

修改警告

parent 1939d3dd
......@@ -96,14 +96,14 @@ class RecommendListView : LinearLayout {
*/
fun setData() {
// 顶部viewpager数据
if (mSceneSpecialTopicList?.isNotEmpty()!!) {
if (mSceneSpecialTopicList.isNotEmpty()) {
initMinHeight(mSceneSpecialTopicList.size)
initViewPager()
}
//多种不同类型大咖专区
if (mDoctorSpecialTopicsList?.isNotEmpty()!!) {
if (mDoctorSpecialTopicsList.isNotEmpty()) {
setBigShotViewData()
}
......@@ -114,7 +114,7 @@ class RecommendListView : LinearLayout {
/**
* 渲染第一页数据
*/
var firstPagerHeight = RxImageTool.dp2px(60f * (getMinData(mSceneSpecialTopicList.size + 1, 4 + 1) / 2))
val firstPagerHeight = RxImageTool.dp2px(60f * (getMinData(mSceneSpecialTopicList.size + 1, 4 + 1) / 2))
val firstPager = getLinearLayout(
mContext!!,
firstPagerHeight, VERTICAL
......@@ -137,7 +137,7 @@ class RecommendListView : LinearLayout {
/**
* 渲染第二页数据
*/
var secondPagerHeight = RxImageTool.dp2px(60f * ((mSceneSpecialTopicList.size - 4 + 1) / 2))
val secondPagerHeight = RxImageTool.dp2px(60f * ((mSceneSpecialTopicList.size - 4 + 1) / 2))
maxHeight = secondPagerHeight + RxImageTool.dp2px(11f)
if (mSceneSpecialTopicList.size > 4) {
val secondPager = getLinearLayout(
......
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