Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
[client] if we don't have an icon name yet, we can't do anything
Browse files Browse the repository at this point in the history
  • Loading branch information
kirb committed Jul 25, 2016
1 parent 887589d commit 9d28bce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/HBTSStatusBarIconItemView.x
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
UIKitBundle = [NSBundle bundleForClass:UIView.class];
});

if (!self.iconName) {
return nil;
}

UIImage *image = [UIImage imageNamed:[self.foregroundStyle expandedNameForImageName:self.iconName] inBundle:UIKitBundle];
UIImage *tintedImage = [image _flatImageWithColor:self.foregroundStyle.tintColor];
return [%c(_UILegibilityImageSet) imageFromImage:tintedImage withShadowImage:nil];
Expand Down

0 comments on commit 9d28bce

Please sign in to comment.