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
Geoffrey Métais
VLC-Android
Commits
2cb26cab
Commit
2cb26cab
authored
Sep 24, 2019
by
Geoffrey Métais
Browse files
TV Browser: sanity check
(cherry picked from commit
eea7551c
)
parent
7ccff62d
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/gui/tv/FileTvItemAdapter.kt
View file @
2cb26cab
...
...
@@ -123,8 +123,10 @@ class FileTvItemAdapter(private val type: Long, private val eventsHandler: IEven
val
scale
=
newWidth
.
toFloat
()
/
itemSize
binding
.
container
.
animate
().
scaleX
(
scale
).
scaleY
(
scale
).
translationZ
(
scale
)
eventsHandler
.
onItemFocused
(
binding
.
root
,
getItem
(
layoutPosition
))
focusListener
?.
onFocusChanged
(
layoutPosition
)
if
(
layoutPosition
in
dataset
.
indices
)
{
eventsHandler
.
onItemFocused
(
binding
.
root
,
getItem
(
layoutPosition
))
focusListener
?.
onFocusChanged
(
layoutPosition
)
}
}
else
{
binding
.
container
.
animate
().
scaleX
(
1f
).
scaleY
(
1f
).
translationZ
(
1f
)
}
...
...
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