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
14
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
98fd9572
Commit
98fd9572
authored
5 years ago
by
Nicolas Pomepuy
Committed by
Geoffrey Métais
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix crash when initializing with an empty chapter list
parent
de3073c6
No related branches found
No related tags found
1 merge request
!94
Fix crash when initializing with an empty chapter list
Pipeline
#6675
passed with stage
in 4 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/gui/helpers/PlayerOptionsDelegate.kt
+1
-0
1 addition, 0 deletions
...src/org/videolan/vlc/gui/helpers/PlayerOptionsDelegate.kt
with
1 addition
and
0 deletions
vlc-android/src/org/videolan/vlc/gui/helpers/PlayerOptionsDelegate.kt
+
1
−
0
View file @
98fd9572
...
...
@@ -309,6 +309,7 @@ class PlayerOptionsDelegate(val activity: AppCompatActivity, val service: Playba
private
fun
initChapters
(
binding
:
PlayerOptionItemBinding
)
{
val
chapters
=
service
.
getChapters
(-
1
)
?:
return
if
(
chapters
.
isEmpty
())
return
val
index
=
service
.
chapterIdx
if
(
chapters
[
index
].
name
.
isNullOrEmpty
())
binding
.
optionTitle
.
text
=
String
.
format
(
"%s %d"
,
res
.
getString
(
R
.
string
.
chapter
),
index
)
...
...
This diff is collapsed.
Click to expand it.
Geoffrey Métais
@Dekans
mentioned in commit
9558739e
·
5 years ago
mentioned in commit
9558739e
mentioned in commit 9558739e339316bbd2caebd466bc4fca92df1418
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