mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-01-04 05:29:45 -05:00
allow changing the note displayed in the widget in a dialog
This commit is contained in:
@@ -45,4 +45,12 @@ public class Config {
|
||||
public void setCurrentNoteIndex(int index) {
|
||||
mPrefs.edit().putInt(Constants.CURRENT_NOTE_INDEX, index).apply();
|
||||
}
|
||||
|
||||
public int getWidgetNoteIndex() {
|
||||
return mPrefs.getInt(Constants.WIDGET_NOTE_ID, 0);
|
||||
}
|
||||
|
||||
public void setWidgetNoteIndex(int id) {
|
||||
mPrefs.edit().putInt(Constants.WIDGET_NOTE_ID, id).apply();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user