Commit 4ea337f0 authored by fallenstardust's avatar fallenstardust

获得最后分类

parent b16f4b99
...@@ -37,6 +37,7 @@ import static cn.garymb.ygomobile.Constants.PREF_NOTCH_HEIGHT; ...@@ -37,6 +37,7 @@ import static cn.garymb.ygomobile.Constants.PREF_NOTCH_HEIGHT;
import static cn.garymb.ygomobile.Constants.PREF_ONLY_GAME; import static cn.garymb.ygomobile.Constants.PREF_ONLY_GAME;
import static cn.garymb.ygomobile.Constants.PREF_READ_EX; import static cn.garymb.ygomobile.Constants.PREF_READ_EX;
import static cn.garymb.ygomobile.Constants.PREF_SENSOR_REFRESH; import static cn.garymb.ygomobile.Constants.PREF_SENSOR_REFRESH;
import static cn.garymb.ygomobile.utils.DeckUtil.getDeckTypeName;
public class AppsSettings { public class AppsSettings {
private static final String PREF_VERSION = "app_version"; private static final String PREF_VERSION = "app_version";
...@@ -529,12 +530,9 @@ public class AppsSettings { ...@@ -529,12 +530,9 @@ public class AppsSettings {
/*** /***
* 保存最后卡组分类名 * 保存最后卡组分类名
*/ */
public void setLastCategory(String name) { public void setLastCategory(String path) {
if (TextUtils.equals(name, getCurLastCategory())) { String catename = getDeckTypeName(path);
//一样 mSharedPreferences.putString(Constants.PREF_LAST_CATEGORY, catename);
return;
}
mSharedPreferences.putString(Constants.PREF_LAST_CATEGORY, name);
} }
public String getCurLastCategory() { public String getCurLastCategory() {
......
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