mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-01-01 12:08:07 -05:00
store the selected notes index
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user