store the selected notes index

This commit is contained in:
tibbi
2016-10-02 18:02:32 +02:00
parent a1ad71adcc
commit ee8e8dd17c
3 changed files with 11 additions and 1 deletions

View File

@@ -37,4 +37,12 @@ public class Config {
public void setFontSize(int size) {
mPrefs.edit().putInt(Constants.FONT_SIZE, size).apply();
}
public int getCurrentNoteIndex() {
return mPrefs.getInt(Constants.CURRENT_NOTE_INDEX, 0);
}
public void setCurrentNoteIndex(int index) {
mPrefs.edit().putInt(Constants.CURRENT_NOTE_INDEX, index).apply();
}
}