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

Display the subtitle delay UI for G/H keys and crash fix

Fixes #182
parent a8ddf322
No related branches found
No related tags found
1 merge request!1007Various UI fixes
Pipeline #107099 passed with stage
in 4 minutes and 3 seconds
......@@ -216,12 +216,13 @@ class VideoDelayDelegate(private val player: VideoPlayerActivity) : View.OnClick
}
player.overlayDelegate.initInfoOverlay()
if (delayState == IPlaybackSettingsController.DelayState.SUBS) service.setSpuDelay(delay) else service.setAudioDelay(delay)
delayTitle.text = player.getString(if (delayState == IPlaybackSettingsController.DelayState.SUBS) R.string.spu_delay else R.string.audio_delay)
delayInfo.text = "${delay / 1000L} ms"
if (::delayTitle.isInitialized) delayTitle.text =
player.getString(if (delayState == IPlaybackSettingsController.DelayState.SUBS) R.string.spu_delay else R.string.audio_delay)
if (::delayInfo.isInitialized) delayInfo.text = "${delay / 1000L} ms"
if (delayState == IPlaybackSettingsController.DelayState.SUBS) spuDelay = delay else audioDelay = delay
if (!player.isPlaybackSettingActive) {
playbackSetting = delayState
initPlaybackSettingInfo()
showDelayControls()
}
}
}
......
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