mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
update the widgets note if the current one is deleted
This commit is contained in:
@ -182,7 +182,10 @@ public class MainActivity extends SimpleActivity implements OpenNoteDialog.OpenN
|
|||||||
|
|
||||||
mDb.deleteNote(mCurrentNote.getId());
|
mDb.deleteNote(mCurrentNote.getId());
|
||||||
mNotes = mDb.getNotes();
|
mNotes = mDb.getNotes();
|
||||||
updateSelectedNote(mNotes.get(0).getId());
|
|
||||||
|
final int firstNoteId = mNotes.get(0).getId();
|
||||||
|
updateSelectedNote(firstNoteId);
|
||||||
|
mConfig.setWidgetNoteId(firstNoteId);
|
||||||
invalidateOptionsMenu();
|
invalidateOptionsMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user