| Index: ios/chrome/browser/ui/settings/voicesearch_collection_view_controller.mm
|
| diff --git a/ios/chrome/browser/ui/settings/voicesearch_collection_view_controller.mm b/ios/chrome/browser/ui/settings/voicesearch_collection_view_controller.mm
|
| index 34a660b714a07df7111da3f493e3e311dedd1d9e..78f4c451c95bcf8c6789fdf066ceeeb70b5abd72 100644
|
| --- a/ios/chrome/browser/ui/settings/voicesearch_collection_view_controller.mm
|
| +++ b/ios/chrome/browser/ui/settings/voicesearch_collection_view_controller.mm
|
| @@ -237,6 +237,12 @@ typedef NS_ENUM(NSInteger, ItemType) {
|
| if (on != switchView.isOn) {
|
| [switchView setOn:on animated:YES];
|
| }
|
| + // Also update the switch item.
|
| + CollectionViewSwitchItem* switchItem =
|
| + base::mac::ObjCCastStrict<CollectionViewSwitchItem>(
|
| + [self.collectionViewModel itemAtIndexPath:switchPath]);
|
| + switchItem.enabled = enabled;
|
| + switchItem.on = on;
|
|
|
| [self reconfigureCellsForItems:modifiedItems];
|
| }
|
|
|