Commit 37963d3e authored by fallenstardust's avatar fallenstardust

fix 路径拼接判断

parent 14283875
...@@ -509,9 +509,9 @@ public class AppsSettings { ...@@ -509,9 +509,9 @@ public class AppsSettings {
//获得最后卡组绝对路径 //获得最后卡组绝对路径
public String getLastDeckPath() { public String getLastDeckPath() {
String path; String path;
if (TextUtils.equals(Constants.CORE_PACK_PATH, getLastCategory())) { if (TextUtils.equals(context.getString(R.string.category_pack), getLastCategory())) {
path = getResourcePath() + "/" + getLastCategory() + "/" + getLastDeckName() + YDK_FILE_EX; path = getResourcePath() + "/" + Constants.CORE_PACK_PATH + "/" + getLastDeckName() + YDK_FILE_EX;
} else if (TextUtils.equals(Constants.WINDBOT_DECK_PATH, getLastCategory())) { } else if (TextUtils.equals(context.getString(R.string.category_windbot_deck), getLastCategory())) {
path = getResourcePath() + "/" + Constants.WINDBOT_PATH + "/" + getLastCategory() + "/" + getLastDeckName() + YDK_FILE_EX; path = getResourcePath() + "/" + Constants.WINDBOT_PATH + "/" + getLastCategory() + "/" + getLastDeckName() + YDK_FILE_EX;
} else if (TextUtils.equals(context.getString(R.string.category_Uncategorized), getLastCategory())) { } else if (TextUtils.equals(context.getString(R.string.category_Uncategorized), getLastCategory())) {
path = getResourcePath() + "/" + Constants.CORE_DECK_PATH + "/" + getLastDeckName() + YDK_FILE_EX; path = getResourcePath() + "/" + Constants.CORE_DECK_PATH + "/" + getLastDeckName() + YDK_FILE_EX;
......
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