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
4cba218c
Commit
4cba218c
authored
Dec 21, 2017
by
Geoffrey Métais
Browse files
Prevent ArrayIndexOutOfBoundsException in adapters
parent
353d92f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/gui/helpers/SelectorViewHolder.java
View file @
4cba218c
...
...
@@ -49,7 +49,7 @@ public class SelectorViewHolder<T extends ViewDataBinding> extends RecyclerView.
@Override
public
void
onFocusChange
(
View
v
,
boolean
hasFocus
)
{
setViewBackground
(
hasFocus
,
isSelected
());
if
(
getLayoutPosition
()
>=
0
)
setViewBackground
(
hasFocus
,
isSelected
());
}
protected
boolean
isSelected
()
{
...
...
Write
Preview
Markdown
is supported
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