Commit 3a2e560e by 霍志良

fix:当动态内容没有的时候,隐藏该空白栏目

parent fd632b1d
...@@ -11,7 +11,7 @@ ext { ...@@ -11,7 +11,7 @@ ext {
"m-user" : "0.0.61.04", "m-user" : "0.0.61.04",
"m-home" : "0.0.22.53", "m-home" : "0.0.22.53",
"m-im" : "0.0.18.34", "m-im" : "0.0.18.34",
"m-dynamic" : "0.0.7.15", "m-dynamic" : "0.0.7.16",
"m-article" : "0.0.0.6", "m-article" : "0.0.0.6",
"m-muse" : "0.0.28.20", "m-muse" : "0.0.28.20",
...@@ -94,7 +94,7 @@ ext { ...@@ -94,7 +94,7 @@ ext {
"m-user" : "0.0.61.04", "m-user" : "0.0.61.04",
"m-home" : "0.0.22.53", "m-home" : "0.0.22.53",
"m-im" : "0.0.18.34", "m-im" : "0.0.18.34",
"m-dynamic" : "0.0.7.15", "m-dynamic" : "0.0.7.16",
"m-muse" : "0.0.20.7", "m-muse" : "0.0.20.7",
"m-tests" : "0.0.24.9", "m-tests" : "0.0.24.9",
......
...@@ -445,5 +445,7 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView, ...@@ -445,5 +445,7 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView,
public void showTopTrend(List<TrendsListBean.ExtData> extDatas) { public void showTopTrend(List<TrendsListBean.ExtData> extDatas) {
mLooperTextView.setTipList(extDatas); mLooperTextView.setTipList(extDatas);
} }
public void setGoneLooperTextView() {
mLooperTextView.setVisibility(View.GONE);
}
} }
...@@ -531,6 +531,8 @@ public class TrendsContentListFragment extends BaseFragment implements ITrendsLi ...@@ -531,6 +531,8 @@ public class TrendsContentListFragment extends BaseFragment implements ITrendsLi
public void showTopTrendsView(List<TrendsListBean.ExtData> extDatas) { public void showTopTrendsView(List<TrendsListBean.ExtData> extDatas) {
if (extDatas != null && extDatas.size() > 0) { if (extDatas != null && extDatas.size() > 0) {
((TrendsHomeFragment) getParentFragment()).showTopTrend(extDatas); ((TrendsHomeFragment) getParentFragment()).showTopTrend(extDatas);
}else{
((TrendsHomeFragment) getParentFragment()).setGoneLooperTextView();
} }
} }
......
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