Commit 49971ee0 authored by fallenstardust's avatar fallenstardust

fix currentDeckPath空指

parent 24b5f237
...@@ -1189,10 +1189,12 @@ class DeckManagerActivityImpl extends BaseCardsAcitivity implements RecyclerView ...@@ -1189,10 +1189,12 @@ class DeckManagerActivityImpl extends BaseCardsAcitivity implements RecyclerView
@Override @Override
public void onDeckMove(List<DeckFile> deckFileList, DeckType toDeckType) { public void onDeckMove(List<DeckFile> deckFileList, DeckType toDeckType) {
String currentDeckPath = mDeckAdapater.getYdkFile().getAbsolutePath(); String currentDeckPath = mDeckAdapater.getYdkFile().getAbsolutePath();
for (DeckFile deckFile : deckFileList) { if (currentDeckPath != null) {
if (deckFile.getPath().equals(currentDeckPath)) { for (DeckFile deckFile : deckFileList) {
loadDeckFromFile(new File(toDeckType.getPath(), deckFile.getName() + ".ydk")); if (deckFile.getPath().equals(currentDeckPath)) {
return; loadDeckFromFile(new File(toDeckType.getPath(), deckFile.getName() + ".ydk"));
return;
}
} }
} }
} }
......
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