Commit 11071451 authored by fallenstardust's avatar fallenstardust

fix 多计算的第一张卡

parent 319ef8a1
......@@ -9,7 +9,7 @@ android {
minSdkVersion 21
//noinspection ExpiredTargetSdkVersion
targetSdkVersion 29
versionCode 310030924
versionCode 310030925
versionName "3.10.3"
flavorDimensions "versionCode"
vectorDrawables.useSupportLibrary = true
......
......@@ -173,7 +173,7 @@ class DeckItemUtils {
adapater.addItem(new DeckItem(DeckItemType.MainLabel));
List<Card> main = deckInfo.getMainCards();
if (main == null) {
for (int i = 0; i < deckInfo.getMainCount(); i++) {
for (int i = 0; i < Constants.DECK_MAIN_MAX; i++) {
adapater.addItem(new DeckItem());
}
} else {
......@@ -224,7 +224,7 @@ class DeckItemUtils {
adapater.addItem(new DeckItem());
}
}
adapater.addItem(new DeckItem(deckInfo.getMainCard(1),DeckItemType.Space));
adapater.addItem(new DeckItem(DeckItemType.Space));
}
}
}
......
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