Commit 7df1186b authored by Carola Nitz's avatar Carola Nitz

remove isAccessibilityElement = Yes because it's the default for UIkit Objects

parent 601bacfd
......@@ -45,7 +45,6 @@
UIBarButtonItem *menuButton = [[UIBarButtonItem alloc] initWithImage:icon style:UIBarButtonItemStyleBordered target:target action:selector];
menuButton.tintColor = [UIColor whiteColor];
menuButton.accessibilityLabel = NSLocalizedString(@"OPEN_VLC_MENU", nil);
menuButton.isAccessibilityElement = YES;
return menuButton;
}
......@@ -62,7 +61,6 @@
{
UIBarButtonItem *playAllButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemPlay target:target action:selector];
playAllButton.accessibilityLabel = NSLocalizedString(@"PLAY_ALL_BUTTON", nil);
playAllButton.isAccessibilityElement = YES;
return playAllButton;
}
......
......@@ -81,7 +81,6 @@
[_playPauseButton addTarget:self action:@selector(playPauseAction:) forControlEvents:UIControlEventTouchUpInside];
_playPauseButton.accessibilityLabel = NSLocalizedString(@"PLAY_PAUSE_BUTTON", nil);
_playPauseButton.accessibilityHint = NSLocalizedString(@"LONGPRESS_TO_STOP", nil);
_playPauseButton.isAccessibilityElement = YES;
_playPauseButton.frame = previousRect = CGRectMake(previousRect.origin.x - buttonSize, (viewFrame.size.height - buttonSize) / 2., buttonSize, buttonSize);
UILongPressGestureRecognizer *longPressRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(playPauseLongPress:)];
[_playPauseButton addGestureRecognizer:longPressRecognizer];
......
......@@ -182,33 +182,23 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
_videoFiltersHidden = YES;
_hueLabel.text = NSLocalizedString(@"VFILTER_HUE", nil);
_hueSlider.accessibilityLabel = _hueLabel.text;
_hueSlider.isAccessibilityElement = YES;
_contrastLabel.text = NSLocalizedString(@"VFILTER_CONTRAST", nil);
_contrastSlider.accessibilityLabel = _contrastLabel.text;
_contrastSlider.isAccessibilityElement = YES;
_brightnessLabel.text = NSLocalizedString(@"VFILTER_BRIGHTNESS", nil);
_brightnessSlider.accessibilityLabel = _brightnessLabel.text;
_brightnessSlider.isAccessibilityElement = YES;
_saturationLabel.text = NSLocalizedString(@"VFILTER_SATURATION", nil);
_saturationSlider.accessibilityLabel = _saturationLabel.text;
_saturationSlider.isAccessibilityElement = YES;
_gammaLabel.text = NSLocalizedString(@"VFILTER_GAMMA", nil);
_gammaSlider.accessibilityLabel = _gammaLabel.text;
_gammaSlider.isAccessibilityElement = YES;
_playbackSpeedLabel.text = NSLocalizedString(@"PLAYBACK_SPEED", nil);
_playbackSpeedSlider.accessibilityLabel = _playbackSpeedLabel.text;
_playbackSpeedSlider.isAccessibilityElement = YES;
_audioDelayLabel.text = NSLocalizedString(@"AUDIO_DELAY", nil);
_audioDelaySlider.accessibilityLabel = _audioDelayLabel.text;
_audioDelaySlider.isAccessibilityElement = YES;
_spuDelayLabel.text = NSLocalizedString(@"SPU_DELAY", nil);
_spuDelaySlider.accessibilityLabel = _spuDelayLabel.text;
_spuDelaySlider.isAccessibilityElement = YES;
_resetVideoFilterButton.accessibilityLabel = NSLocalizedString(@"VIDEO_FILTER_RESET_BUTTON", nil);
_resetVideoFilterButton.isAccessibilityElement = YES;
_sleepTimerButton.accessibilityLabel = NSLocalizedString(@"BUTTON_SLEEP_TIMER", nil);
_sleepTimerButton.isAccessibilityElement = YES;
[_sleepTimerButton setTitle:NSLocalizedString(@"BUTTON_SLEEP_TIMER", nil) forState:UIControlStateNormal];
_multiSelectionView = [[VLCMultiSelectionMenuView alloc] init];
......
......@@ -17,7 +17,6 @@
- (void)awakeFromNib
{
self.accessibilityLabel = NSLocalizedString(@"PLAYBACK_POSITION", nil);
self.isAccessibilityElement = YES;
[self setThumbImage:[UIImage imageNamed:@"sliderKnob"] forState:UIControlStateNormal];
[super awakeFromNib];
}
......
......@@ -21,15 +21,11 @@
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
self.positionSlider.scrubbingSpeedChangePositions = @[@(0.), @(100.), @(200.), @(300)];
self.timeDisplayButton.isAccessibilityElement = YES;
self.aspectRatioButton.accessibilityLabel = NSLocalizedString(@"VIDEO_ASPECT_RATIO_BUTTON", nil);
self.aspectRatioButton.isAccessibilityElement = YES;
[self.aspectRatioButton setImage:[UIImage imageNamed:@"ratioIcon"] forState:UIControlStateNormal];
self.minimizePlaybackButton.accessibilityLabel = NSLocalizedString(@"MINIMIZE_PLAYBACK_VIEW", nil);
self.minimizePlaybackButton.isAccessibilityElement = YES;
// workaround for radar://22897614 ( http://www.openradar.me/22897614 )
UISlider *slider = self.positionSlider;
......
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