Skip to content

Commit

Permalink
Fix state updates for the lock and sort menu items
Browse files Browse the repository at this point in the history
Turns out I was a little too enthusiastically removing things in 9d383b8
The menu may not necessarily have been created yet in all cases.
  • Loading branch information
alexbakker committed Nov 25, 2024
1 parent 337cb74 commit 0caba8a
Show file tree
Hide file tree
Showing 2 changed files with 203 additions and 97 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,9 @@ public boolean onCreateOptionsMenu(Menu menu) {
_menu = menu;
getMenuInflater().inflate(R.menu.menu_main, menu);

updateLockIcon();
updateSortCategoryMenu();

MenuItem searchViewMenuItem = menu.findItem(R.id.mi_search);
_searchView = (SearchView) searchViewMenuItem.getActionView();
_searchView.setMaxWidth(Integer.MAX_VALUE);
Expand Down
Loading

0 comments on commit 0caba8a

Please sign in to comment.