mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-01-04 05:29:45 -05:00
add the Autosave option
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user