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