Commit 087d44d8 authored by Robbie Gibson's avatar Robbie Gibson Committed by Commit Bot

[iOS][Dark Mode] Fix SendToSelf images not being template images

The images stayed black because they were not template images. As
template images, they are tinted by default in
SettingsImageDetailTextCell, so everything looks fine.

Bug: 1001495
Change-Id: Ie06f62b78e28200a2ec6f963c173687eeaeba5df
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1789313
Auto-Submit: Robbie Gibson <rkgibson@google.com>
Commit-Queue: Sergio Collazos <sczs@chromium.org>
Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#694309}
parent 31a74c43
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
cell.textLabel.text = self.text; cell.textLabel.text = self.text;
cell.detailTextLabel.text = self.detailText; cell.detailTextLabel.text = self.detailText;
DCHECK([self.iconImageName length]); DCHECK([self.iconImageName length]);
cell.image = [UIImage imageNamed:self.iconImageName]; cell.image = [[UIImage imageNamed:self.iconImageName]
imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
if (self.selected) { if (self.selected) {
cell.accessoryType = UITableViewCellAccessoryCheckmark; cell.accessoryType = UITableViewCellAccessoryCheckmark;
} else { } else {
......
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