Commit a83f02ad authored by fallenstardust's avatar fallenstardust

实现mobile和ygopro是否启用genesys为同步

parent 8874d52b
...@@ -643,11 +643,11 @@ public class AppsSettings { ...@@ -643,11 +643,11 @@ public class AppsSettings {
mSharedPreferences.getString(Constants.PREF_LAST_GENESYS_LIMIT, Constants.PREF_DEF_LAST_GENESYS_LIMIT) : limitName; mSharedPreferences.getString(Constants.PREF_LAST_GENESYS_LIMIT, Constants.PREF_DEF_LAST_GENESYS_LIMIT) : limitName;
} }
public void setGenesysMode(int value) { public void setGenesysMode(int value) {
App.get().saveIntSetting("lastGenesysMode", value); App.get().saveIntSetting("enable_genesys_mode", value);
mSharedPreferences.putInt(Constants.PREF_LAST_GENESYS_MODE, value); mSharedPreferences.putInt(Constants.PREF_LAST_GENESYS_MODE, value);
} }
public int getGenesysMode () { public int getGenesysMode () {
return mSharedPreferences.getInt(Constants.PREF_LAST_GENESYS_MODE, Constants.PREF_DEF_LAST_GENESYS_MODE); return App.get().getIntSetting("enable_genesys_mode", Constants.PREF_DEF_LAST_GENESYS_MODE);
} }
/** /**
......
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