diff --git a/app/src/main/java/com/simplemobiletools/notes/activities/MainActivity.java b/app/src/main/java/com/simplemobiletools/notes/activities/MainActivity.java index 54129c30..42bd1ae3 100644 --- a/app/src/main/java/com/simplemobiletools/notes/activities/MainActivity.java +++ b/app/src/main/java/com/simplemobiletools/notes/activities/MainActivity.java @@ -182,7 +182,10 @@ public class MainActivity extends SimpleActivity implements OpenNoteDialog.OpenN mDb.deleteNote(mCurrentNote.getId()); mNotes = mDb.getNotes(); - updateSelectedNote(mNotes.get(0).getId()); + + final int firstNoteId = mNotes.get(0).getId(); + updateSelectedNote(firstNoteId); + mConfig.setWidgetNoteId(firstNoteId); invalidateOptionsMenu(); }