Commit 4d426c29 authored by Jérôme Lebel's avatar Jérôme Lebel Committed by Commit Bot

[iOS] Adding detail text in -[SettingsSwitchCell accessibilityLabel]

Bug: 919040
Change-Id: I47e6303a2fadb5e587fa7cfbf362495931ee3328
Reviewed-on: https://chromium-review.googlesource.com/c/1396137Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Commit-Queue: Jérôme Lebel <jlebel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#619924}
parent f134c4d3
...@@ -243,7 +243,10 @@ const CGFloat kIconImageSize = 28; ...@@ -243,7 +243,10 @@ const CGFloat kIconImageSize = 28;
} }
- (NSString*)accessibilityLabel { - (NSString*)accessibilityLabel {
return _textLabel.text; if (!self.detailTextLabel.text)
return self.textLabel.text;
return [NSString stringWithFormat:@"%@, %@", self.textLabel.text,
self.detailTextLabel.text];
} }
- (NSString*)accessibilityValue { - (NSString*)accessibilityValue {
......
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