allow changing the note displayed in the widget in a dialog

This commit is contained in:
tibbi
2016-10-24 22:19:28 +02:00
parent 5c11dec6dc
commit 27c279e843
12 changed files with 77 additions and 1 deletions

View File

@@ -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();
}
}