Commit 946b46f9 authored by Tobias's avatar Tobias

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

fix time label size when changing to displayRemainingTime.
parent 626a7dda
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
<outlet property="spuDelayLabel" destination="NX8-Zc-K6Y" id="WLd-cA-fUn"/> <outlet property="spuDelayLabel" destination="NX8-Zc-K6Y" id="WLd-cA-fUn"/>
<outlet property="spuDelaySlider" destination="juX-HR-PqD" id="x4D-ki-Lwk"/> <outlet property="spuDelaySlider" destination="juX-HR-PqD" id="x4D-ki-Lwk"/>
<outlet property="statusLabel" destination="205" id="206"/> <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="toolbar" destination="256" id="260"/>
<outlet property="trackNameLabel" destination="304" id="307"/> <outlet property="trackNameLabel" destination="304" id="307"/>
<outlet property="trackSwitcherButton" destination="277" id="4wh-dZ-qaR"/> <outlet property="trackSwitcherButton" destination="277" id="4wh-dZ-qaR"/>
......
...@@ -672,6 +672,7 @@ typedef NS_ENUM(NSInteger, VLCPanType) { ...@@ -672,6 +672,7 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
if (_mediaDuration > 0) { if (_mediaDuration > 0) {
VLCTime *newPosition = [VLCTime timeWithInt:(int)(sender.value * _mediaDuration)]; VLCTime *newPosition = [VLCTime timeWithInt:(int)(sender.value * _mediaDuration)];
[self.timeNavigationTitleView.timeDisplayButton setTitle:newPosition.stringValue forState:UIControlStateNormal]; [self.timeNavigationTitleView.timeDisplayButton setTitle:newPosition.stringValue forState:UIControlStateNormal];
[self.timeNavigationTitleView setNeedsLayout];
self.timeNavigationTitleView.timeDisplayButton.accessibilityLabel = [NSString stringWithFormat:@"%@: %@", NSLocalizedString(@"PLAYBACK_POSITION", nil), newPosition.stringValue]; self.timeNavigationTitleView.timeDisplayButton.accessibilityLabel = [NSString stringWithFormat:@"%@: %@", NSLocalizedString(@"PLAYBACK_POSITION", nil), newPosition.stringValue];
_positionSet = NO; _positionSet = NO;
} }
...@@ -746,6 +747,7 @@ typedef NS_ENUM(NSInteger, VLCPanType) { ...@@ -746,6 +747,7 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
[self.timeNavigationTitleView.timeDisplayButton setTitle:[[mediaPlayer remainingTime] stringValue] forState:UIControlStateNormal]; [self.timeNavigationTitleView.timeDisplayButton setTitle:[[mediaPlayer remainingTime] stringValue] forState:UIControlStateNormal];
else else
[self.timeNavigationTitleView.timeDisplayButton setTitle:[[mediaPlayer time] stringValue] forState:UIControlStateNormal]; [self.timeNavigationTitleView.timeDisplayButton setTitle:[[mediaPlayer time] stringValue] forState:UIControlStateNormal];
[self.timeNavigationTitleView setNeedsLayout];
} }
- (void)prepareForMediaPlayback:(VLCPlaybackController *)controller - (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