Commit 51696cfc authored by fallenstardust's avatar fallenstardust

修复卡组文件中有大于9位的密码而闪退的问题

parent 10f636eb
......@@ -65,6 +65,9 @@ public class DeckLoader {
Log.w("kk", "read not number " + line);
continue;
}
if (line.length() > 9) {//密码如果大于9位直接过滤
continue;
}
Integer id = Integer.parseInt(line);
if (type == DeckItemType.MainCard && deck.getMainCount() < Constants.DECK_MAIN_MAX) {
Integer i = mIds.get(id);
......
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