update the current note if it was deleted

This commit is contained in:
tibbi
2016-10-24 23:23:14 +02:00
parent fb1e766be9
commit 6bcf53b771

View File

@ -182,7 +182,7 @@ public class MainActivity extends SimpleActivity implements OpenNoteDialog.OpenN
mDb.deleteNote(mCurrentNote.getId()); mDb.deleteNote(mCurrentNote.getId());
mNotes = mDb.getNotes(); mNotes = mDb.getNotes();
updateSelectedNote(0); updateSelectedNote(mNotes.get(0).getId());
invalidateOptionsMenu(); invalidateOptionsMenu();
} }