Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
554b8ced
Commit
554b8ced
authored
5 years ago
by
Nicolas Pomepuy
Committed by
Geoffrey Métais
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix thumbnails for video grouped by folder
Fixes
#1140
parent
50d2ce39
No related branches found
No related tags found
1 merge request
!417
Fix thumbnails for video grouped by folder
Pipeline
#13202
passed with stage
in 4 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.kt
+2
-5
2 additions, 5 deletions
...ndroid/src/org/videolan/vlc/gui/video/VideoListAdapter.kt
with
2 additions
and
5 deletions
application/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.kt
+
2
−
5
View file @
554b8ced
...
...
@@ -56,7 +56,8 @@ import org.videolan.tools.safeOffer
import
org.videolan.vlc.BR
import
org.videolan.vlc.R
import
org.videolan.vlc.gui.helpers.*
import
org.videolan.vlc.util.*
import
org.videolan.vlc.util.generateResolutionClass
import
org.videolan.vlc.util.scope
import
org.videolan.vlc.viewmodels.mobile.VideoGroupingType
private
const
val
TAG
=
"VLC/VideoListAdapter"
...
...
@@ -111,10 +112,6 @@ class VideoListAdapter(private var isSeenMediaMarkerVisible: Boolean
holder
.
selectView
(
multiSelectHelper
.
isSelected
(
position
))
}
override
fun
getItemViewType
(
position
:
Int
)
=
when
(
dataType
)
{
VideoGroupingType
.
FOLDER
->
1
else
->
0
}
override
fun
onBindViewHolder
(
holder
:
ViewHolder
,
position
:
Int
,
payloads
:
List
<
Any
>)
{
if
(
payloads
.
isEmpty
())
onBindViewHolder
(
holder
,
position
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment