Experimental feature setting
This commit is contained in:
@@ -335,7 +335,7 @@ public class Preferences {
|
||||
}
|
||||
}
|
||||
|
||||
// proxy preference functions ends here
|
||||
// cloud prefs
|
||||
|
||||
public CloudSearchPrefs getCloudSearchPrefs() {
|
||||
return new CloudSearchPrefs(mSharedPreferences.getBoolean(Pref.SEARCH_KEYSERVER, true),
|
||||
@@ -360,6 +360,18 @@ public class Preferences {
|
||||
}
|
||||
}
|
||||
|
||||
// other prefs
|
||||
|
||||
public void setEnableExperimentalFeatures(boolean enableExperimentalFeatures) {
|
||||
SharedPreferences.Editor editor = mSharedPreferences.edit();
|
||||
editor.putBoolean(Pref.ENABLE_EXPERIMENTAL_FEATURES, enableExperimentalFeatures);
|
||||
editor.commit();
|
||||
}
|
||||
|
||||
public boolean getEnableExperimentalFeatures() {
|
||||
return mSharedPreferences.getBoolean(Pref.ENABLE_EXPERIMENTAL_FEATURES, false);
|
||||
}
|
||||
|
||||
public void upgradePreferences(Context context) {
|
||||
if (mSharedPreferences.getInt(Constants.Pref.PREF_DEFAULT_VERSION, 0) !=
|
||||
Constants.Defaults.PREF_VERSION) {
|
||||
|
||||
Reference in New Issue
Block a user