Commit 35a15016 authored by Tobias's avatar Tobias Committed by Felix Paul Kühne

fix #14622, update time navigation title view on iPad.

fix time label size when changing to displayRemainingTime.

(cherry picked from commit 946b46f9)
Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent f3f73653
......@@ -48,6 +48,7 @@
<outlet property="spuDelayLabel" destination="NX8-Zc-K6Y" id="WLd-cA-fUn"/>
<outlet property="spuDelaySlider" destination="juX-HR-PqD" id="x4D-ki-Lwk"/>
<outlet property="statusLabel" destination="205" id="206"/>
<outlet property="timeNavigationTitleView" destination="248" id="Ghx-eD-EQA"/>
<outlet property="toolbar" destination="256" id="260"/>
<outlet property="trackNameLabel" destination="304" id="307"/>
<outlet property="trackSwitcherButton" destination="277" id="4wh-dZ-qaR"/>
......
......@@ -695,6 +695,7 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
if (_mediaDuration > 0) {
VLCTime *newPosition = [VLCTime timeWithInt:(int)(sender.value * _mediaDuration)];
[self.timeNavigationTitleView.timeDisplayButton setTitle:newPosition.stringValue forState:UIControlStateNormal];
[self.timeNavigationTitleView setNeedsLayout];
self.timeNavigationTitleView.timeDisplayButton.accessibilityLabel = [NSString stringWithFormat:@"%@: %@", NSLocalizedString(@"PLAYBACK_POSITION", nil), newPosition.stringValue];
_positionSet = NO;
}
......@@ -769,6 +770,7 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
[self.timeNavigationTitleView.timeDisplayButton setTitle:[[mediaPlayer remainingTime] stringValue] forState:UIControlStateNormal];
else
[self.timeNavigationTitleView.timeDisplayButton setTitle:[[mediaPlayer time] stringValue] forState:UIControlStateNormal];
[self.timeNavigationTitleView setNeedsLayout];
}
- (void)prepareForMediaPlayback:(VLCPlaybackController *)controller
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment