Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
cb9cb1b3
Commit
cb9cb1b3
authored
Apr 03, 2018
by
Geoffrey Métais
Browse files
Prevent NPE in menu preparation
parent
f0004698
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/gui/browser/SortableFragment.java
View file @
cb9cb1b3
...
...
@@ -58,7 +58,8 @@ public abstract class SortableFragment<T extends SortableAdapter> extends MediaB
@Override
public
void
onPrepareOptionsMenu
(
Menu
menu
)
{
super
.
onPrepareOptionsMenu
(
menu
);
menu
.
findItem
(
R
.
id
.
ml_menu_sortby
).
setVisible
(
isSortEnabled
());
final
MenuItem
item
=
menu
.
findItem
(
R
.
id
.
ml_menu_sortby
);
if
(
item
!=
null
)
item
.
setVisible
(
isSortEnabled
());
UiTools
.
updateSortTitles
(
this
,
menu
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment