|
|
@@ -344,11 +344,6 @@ public class FgtFindChild extends BaseListFragment5<Article> {
|
|
|
@Override
|
|
|
public void convert(final ViewHolder holder, final Article item) {
|
|
|
View rootConvertView = holder.itemView;
|
|
|
- View padding = rootConvertView.findViewById(R.id.padding);
|
|
|
- if (padding == null) {
|
|
|
- return;
|
|
|
- }
|
|
|
- padding.setVisibility(holder.getAdapterPosition() == 1 ? View.GONE : View.VISIBLE);
|
|
|
TextView find_item_name = (TextView) rootConvertView.findViewById(R.id.find_item_name);
|
|
|
TextView find_item_time = (TextView) rootConvertView.findViewById(R.id.find_item_time);
|
|
|
ImageView find_item_iv = (ImageView) rootConvertView.findViewById(R.id.find_item_iv);
|
|
|
@@ -359,21 +354,21 @@ public class FgtFindChild extends BaseListFragment5<Article> {
|
|
|
ViewUtil.setVisibility(find_item_placement, item.getIs_placement() == 1);
|
|
|
|
|
|
if (item.isGame()) {
|
|
|
- find_item_download.setVisibility(View.VISIBLE);
|
|
|
+ ViewUtil.setVisibility(find_item_download, View.VISIBLE);
|
|
|
Applications findApp = item.getApplication();
|
|
|
updateView(findApp, find_item_download);
|
|
|
} else {
|
|
|
- find_item_download.setVisibility(View.GONE);
|
|
|
+ ViewUtil.setVisibility(find_item_download, View.GONE);
|
|
|
}
|
|
|
ViewUtil.setText(find_item_name, item.getTitle());
|
|
|
ViewUtil.setTextTime(find_item_time, item.getCreated_at(), "yyyy-MM-dd");
|
|
|
ViewUtil.setImage(find_item_iv, item.getPictures());
|
|
|
ViewUtil.setText(find_item_des, item.getDes());
|
|
|
item.removeNullTag();
|
|
|
- if (ListUtil.isEmpty(item.getTages())) {
|
|
|
- find_item_tags.setVisibility(View.GONE);
|
|
|
+ if (ListUtil.isEmpty(item.getTages()) || find_item_tags == null) {
|
|
|
+ ViewUtil.setVisibility(find_item_tags, View.GONE);
|
|
|
} else {
|
|
|
- find_item_tags.setVisibility(View.VISIBLE);
|
|
|
+ ViewUtil.setVisibility(find_item_tags, View.VISIBLE);
|
|
|
TagAdapter adapter = new TagAdapter<ArticleTag>(item.getTages()) {
|
|
|
@Override
|
|
|
public View getView(FlowLayout parent, int position, ArticleTag item) {
|