Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Geoffrey Métais
VLC-Android
Commits
cd2a60c7
Commit
cd2a60c7
authored
May 14, 2018
by
Geoffrey Métais
Browse files
Fetch volume only if a media is loaded
parent
37cda385
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/media/PlayerController.kt
View file @
cd2a60c7
...
...
@@ -257,7 +257,7 @@ class PlayerController : IVLCVout.Callback, MediaPlayer.EventListener {
mediaplayer
.
title
=
title
}
fun
getVolume
()
=
mediaplayer
.
volume
fun
getVolume
()
=
if
(
mediaplayer
.
hasMedia
())
mediaplayer
.
volume
else
100
fun
setVolume
(
volume
:
Int
)
=
mediaplayer
.
setVolume
(
volume
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment