Commit 88cc935b authored by fallenstardust's avatar fallenstardust

添加boolean sort传参,对卡包展示列表不排序,对关联卡片列表排序

parent e926c75f
......@@ -225,7 +225,7 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
if (cardInfo == null) {
return;
}
mListener.onShowCardList(relatedCards(cardInfo));
mListener.onShowCardList(relatedCards(cardInfo), true);
}
});
findViewById(R.id.lastone).setOnClickListener((v) -> {
......@@ -320,7 +320,7 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
private void showPackList(Card cardInfo) {
Integer idToUse = cardInfo.Alias != 0 ? cardInfo.Alias : cardInfo.Code;
mListener.onShowCardList(packManager.getCards(cardLoader, idToUse));
mListener.onShowCardList(packManager.getCards(cardLoader, idToUse), false);
}
public void setHighlightTextWithClickableSpans(String text) {
......@@ -795,7 +795,7 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
void onSearchKeyWord(String keyword);
void onShowCardList(List<Card> cardList);
void onShowCardList(List<Card> cardList, boolean sort);
void onClose();
}
......@@ -824,7 +824,7 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
}
@Override
public void onShowCardList(List<Card> cardList) {
public void onShowCardList(List<Card> cardList, boolean sort) {
}
......
......@@ -309,8 +309,8 @@ public class CardSearchFragment extends BaseFragemnt implements CardLoader.CallB
}
@Override
public void onShowCardList(List<Card> cardList) {
showCardList(cardList, true);//便于查看,排序
public void onShowCardList(List<Card> cardList, boolean sort) {
showCardList(cardList, sort);//卡包展示不排序,关联卡片排序
}
@Override
......
......@@ -565,8 +565,8 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
}
@Override
public void onShowCardList(List<Card> cardList) {
showCardList(cardList, true);//便于查看,排序
public void onShowCardList(List<Card> cardList, boolean sort) {
showCardList(cardList, sort);//卡包展示不排序,其他情况排序
}
@Override
......
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