Commit b396372c authored by fallenstardust's avatar fallenstardust

fix 所有ypk都不含ydk时的异常

parent 6c94a826
...@@ -185,7 +185,9 @@ public class YGODialogUtil { ...@@ -185,7 +185,9 @@ public class YGODialogUtil {
if (position == 0) { if (position == 0) {
if (AppsSettings.get().isReadExpansions()) { if (AppsSettings.get().isReadExpansions()) {
try { try {
deckList.addAll(0, DeckUtil.getExpansionsDeckList()); if (!DeckUtil.getExpansionsDeckList().isEmpty()) {
deckList.addAll(0, DeckUtil.getExpansionsDeckList());
}
} catch (IOException e) { } catch (IOException e) {
YGOUtil.showTextToast("额外卡库加载失败,原因为" + e); YGOUtil.showTextToast("额外卡库加载失败,原因为" + e);
} }
......
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