Commit ddfa08b7 authored by fallenstardust's avatar fallenstardust

比较strings和value

parent ed80035c
...@@ -541,16 +541,16 @@ public class AppsSettings { ...@@ -541,16 +541,16 @@ public class AppsSettings {
//从获得的key+value里拼接一个绝对路径 //从获得的key+value里拼接一个绝对路径
public String getCurLastDeckPath() { public String getCurLastDeckPath() {
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() + "/" + getLastCategory() + "/" + 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 + "/" + Constants.WINDBOT_DECK_PATH + "/" + 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;
} else { } else {
path = getResourcePath() + "/" + Constants.CORE_DECK_PATH + "/" + getLastCategory() + "/" + getLastDeckName() + YDK_FILE_EX; path = getResourcePath() + "/" + Constants.CORE_DECK_PATH + "/" + getLastCategory() + "/" + getLastDeckName() + YDK_FILE_EX;
} }
mSharedPreferences.putString(Constants.PREF_LAST_DECK_PATH, path); //mSharedPreferences.putString(Constants.PREF_LAST_DECK_PATH, path);
return path; return path;
} }
......
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