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

mini player: add missing a11y (closes #15012)

(cherry picked from commit 01941737)
parent 9b1a4ef2
......@@ -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;
......
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