Browse Source

mini player: add missing a11y (closes #15012)

(cherry picked from commit 019417372e93cdd177c8d2401dafcc43263f30f1)
Felix Paul Kühne 10 years ago
parent
commit
9235f68f32
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Sources/VLCMiniPlaybackView.m

+ 3 - 0
Sources/VLCMiniPlaybackView.m

@@ -61,6 +61,7 @@
     _expandButton.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
     [_expandButton addTarget:self action:@selector(pushFullPlaybackView:) forControlEvents:UIControlEventTouchUpInside];
     _expandButton.frame = previousRect = CGRectMake(viewFrame.size.width - buttonSize, (viewFrame.size.height - buttonSize) / 2., buttonSize, buttonSize);
+    _expandButton.accessibilityLabel = NSLocalizedString(@"FULLSCREEN_PLAYBACK", nil);
     [self addSubview:_expandButton];
 
     _nextButton = [UIButton buttonWithType:UIButtonTypeCustom];
@@ -69,6 +70,7 @@
     _nextButton.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
     [_nextButton addTarget:self action:@selector(nextAction:) forControlEvents:UIControlEventTouchUpInside];
     _nextButton.frame = previousRect = CGRectMake(previousRect.origin.x - buttonSize, (viewFrame.size.height - buttonSize) / 2., buttonSize, buttonSize);
+    _nextButton.accessibilityLabel = NSLocalizedString(@"FWD_BUTTON", nil);
     [self addSubview:_nextButton];
 
     _playPauseButton = [UIButton buttonWithType:UIButtonTypeCustom];
@@ -90,6 +92,7 @@
     _previousButton.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
     [_previousButton addTarget:self action:@selector(previousAction:) forControlEvents:UIControlEventTouchUpInside];
     _previousButton.frame = previousRect = CGRectMake(previousRect.origin.x - buttonSize, (viewFrame.size.height - buttonSize) / 2., buttonSize, buttonSize);
+    _previousButton.accessibilityLabel = NSLocalizedString(@"BWD_BUTTON", nil);
     [self addSubview:_previousButton];
 
     CGFloat artworkViewWidth = _artworkView.frame.size.width;