Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
536
Issue boards
Milestones
Wiki
Code
Merge requests
18
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
58af3c9e
Commit
58af3c9e
authored
5 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Playlist: Sanity check
parent
4229ea2c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#6216
passed with stage
in 4 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/viewmodels/PlaylistModel.kt
+1
-1
1 addition, 1 deletion
vlc-android/src/org/videolan/vlc/viewmodels/PlaylistModel.kt
with
1 addition
and
1 deletion
vlc-android/src/org/videolan/vlc/viewmodels/PlaylistModel.kt
+
1
−
1
View file @
58af3c9e
...
...
@@ -105,7 +105,7 @@ class PlaylistModel : ScopedModel(), PlaybackService.Callback by EmptyPBSCallbac
fun
getPlaylistPosition
(
position
:
Int
,
media
:
MediaWrapper
):
Int
{
val
list
=
originalDataset
?:
dataset
.
value
if
(
list
[
position
]
==
media
)
return
position
if
(
position
in
0
until
list
.
size
&&
list
[
position
]
==
media
)
return
position
else
{
for
((
index
,
item
)
in
list
.
withIndex
())
if
(
item
==
media
)
{
return
index
...
...
This diff is collapsed.
Click to expand it.
Geoffrey Métais
@Dekans
mentioned in commit
07676ab2
·
5 years ago
mentioned in commit
07676ab2
mentioned in commit 07676ab2c6347aad9ce23637bf74b81d48b7fefe
Toggle commit list
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