add the Autosave option

This commit is contained in:
tibbi
2016-07-11 21:44:04 +02:00
parent be6b1d5ef8
commit a7180ea1ee
11 changed files with 149 additions and 5 deletions

View File

@@ -21,4 +21,12 @@ public class Config {
public void setIsFirstRun(boolean firstRun) {
mPrefs.edit().putBoolean(Constants.IS_FIRST_RUN, firstRun).apply();
}
public boolean getIsAutosaveEnabled() {
return mPrefs.getBoolean(Constants.AUTOSAVE, false);
}
public void setIsAutosaveEnabled(boolean enabled) {
mPrefs.edit().putBoolean(Constants.AUTOSAVE, enabled).apply();
}
}