Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
534
Issue boards
Milestones
Wiki
Code
Merge requests
11
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
9b0fb5d4
Commit
9b0fb5d4
authored
3 years ago
by
Nicolas Pomepuy
Browse files
Options
Downloads
Patches
Plain Diff
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
!1007
Various UI fixes
Pipeline
#107099
passed with stage
in 4 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/vlc-android/src/org/videolan/vlc/gui/video/VideoDelayDelegate.kt
+4
-3
4 additions, 3 deletions
...roid/src/org/videolan/vlc/gui/video/VideoDelayDelegate.kt
with
4 additions
and
3 deletions
application/vlc-android/src/org/videolan/vlc/gui/video/VideoDelayDelegate.kt
+
4
−
3
View file @
9b0fb5d4
...
...
@@ -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
()
}
}
}
...
...
This diff is collapsed.
Click to expand it.
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