Skip to content

Commit

Permalink
Make sure to pass lifecycle with menu provider
Browse files Browse the repository at this point in the history
  • Loading branch information
seadowg committed Oct 13, 2023
1 parent 43c8600 commit 561c7db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public void onCreate(Bundle savedInstanceState) {
});

DraftsMenuProvider draftsMenuProvider = new DraftsMenuProvider(this, bulkFinalizationViewModel::finalizeAllDrafts);
addMenuProvider(draftsMenuProvider);
addMenuProvider(draftsMenuProvider, this);
bulkFinalizationViewModel.getDraftsCount().observe(this, draftsCount -> {
draftsMenuProvider.setDraftsCount(draftsCount);
invalidateMenu();
Expand Down

0 comments on commit 561c7db

Please sign in to comment.