Commit eb226196 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

playback: toggle repeat button artwork according to state

parent f1508ab1
......@@ -407,6 +407,7 @@
self.positionSlider.value = 0.;
[self.timeDisplay setTitle:@"" forState:UIControlStateNormal];
self.timeDisplay.accessibilityLabel = @"";
[self.repeatButton setImage:[UIImage imageNamed:@"repeat"] forState:UIControlStateNormal];
if (![self _isMediaSuitableForDevice]) {
UIAlertView * alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"DEVICE_TOOSLOW_TITLE", @"") message:[NSString stringWithFormat:NSLocalizedString(@"DEVICE_TOOSLOW", @""), [[UIDevice currentDevice] model], self.mediaItem.title] delegate:self cancelButtonTitle:NSLocalizedString(@"BUTTON_CANCEL", @"") otherButtonTitles:NSLocalizedString(@"BUTTON_OPEN", @""), nil];
......@@ -835,10 +836,13 @@
- (void)toggleRepeatMode:(id)sender
{
if (_listPlayer.repeatMode == VLCDoNotRepeat)
if (_listPlayer.repeatMode == VLCDoNotRepeat) {
_listPlayer.repeatMode = VLCRepeatCurrentItem;
else
[self.repeatButton setImage:[UIImage imageNamed:@"repeatOne"] forState:UIControlStateNormal];
} else {
_listPlayer.repeatMode = VLCDoNotRepeat;
[self.repeatButton setImage:[UIImage imageNamed:@"repeat"] forState:UIControlStateNormal];
}
}
- (IBAction)switchAudioTrack:(id)sender
......
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