mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-02 18:00:12 +02:00
update the widgets note if the current one is deleted
This commit is contained in:
parent
1870033aab
commit
6deaae3ac6
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user