Commit 995e1d3e authored by fallenstardust's avatar fallenstardust

优化卡包展示和一起分类切换时的图片错误

parent 5df16924
...@@ -81,6 +81,7 @@ public class DeckListAdapter<T extends TextSelect> extends BaseQuickAdapter<T, D ...@@ -81,6 +81,7 @@ public class DeckListAdapter<T extends TextSelect> extends BaseQuickAdapter<T, D
//预读卡组信息 //预读卡组信息
this.deckInfo = mDeckLoader.readDeck(mCardLoader, deckFile.getPathFile(), mLimitList); this.deckInfo = mDeckLoader.readDeck(mCardLoader, deckFile.getPathFile(), mLimitList);
//加载卡组第一张卡的图 //加载卡组第一张卡的图
holder.cardImage.setVisibility(View.VISIBLE);
imageLoader.bindImage(holder.cardImage, deckFile.getFirstCode(), ImageLoader.Type.small); imageLoader.bindImage(holder.cardImage, deckFile.getFirstCode(), ImageLoader.Type.small);
//填入内容 //填入内容
holder.main.setText(String.valueOf(deckInfo.getMainCount())); holder.main.setText(String.valueOf(deckInfo.getMainCount()));
...@@ -146,6 +147,7 @@ public class DeckListAdapter<T extends TextSelect> extends BaseQuickAdapter<T, D ...@@ -146,6 +147,7 @@ public class DeckListAdapter<T extends TextSelect> extends BaseQuickAdapter<T, D
} }
} else { } else {
holder.deck_info.setVisibility(View.GONE); holder.deck_info.setVisibility(View.GONE);
holder.cardImage.setVisibility(View.GONE);
} }
//多选 //多选
if (isManySelect) { if (isManySelect) {
......
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