Commit cb9cb1b3 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Prevent NPE in menu preparation

parent f0004698
......@@ -58,7 +58,8 @@ public abstract class SortableFragment<T extends SortableAdapter> extends MediaB
public void onPrepareOptionsMenu(Menu menu) {
final MenuItem item = menu.findItem(;
if (item != null) item.setVisible(isSortEnabled());
UiTools.updateSortTitles(this, menu);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment