Skip to content
Snippets Groups Projects
Commit 180e14ac authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Fix audio seek button using the wrong preference value

parent 25b026c9
No related branches found
No related tags found
1 merge request!1148Multiple behavior fixes
......@@ -466,7 +466,7 @@ class AudioPlayer : Fragment(), PlaylistAdapter.IPlayer, TextWatcher, IAudioPlay
*/
private fun jump(forward:Boolean, long:Boolean) {
playlistModel.service ?.let { service ->
val jumpDelay = if (long) Settings.videoLongJumpDelay else Settings.videoJumpDelay
val jumpDelay = if (long) Settings.audioLongJumpDelay else Settings.audioJumpDelay
val delay = if (forward) jumpDelay * 1000 else -(jumpDelay * 1000)
var position = service.getTime() + delay
if (position < 0) position = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment