bug fix when unselected image isn't set

This commit is contained in:
Ran Greenberg 2017-03-13 16:13:38 +02:00
parent e6baf9f92d
commit 2eb414fffa

View File

@ -294,11 +294,14 @@ static UIColor *selectionOverlayColor = nil;
}
}
else {
self.imageOveray.backgroundColor = [UIColor clearColor];
if (unSelectedImageIcon) {
self.imageOveray.backgroundColor = [UIColor clearColor];
self.badgeImageView.image = unSelectedImageIcon;
[self updateBadgeImageViewFrame];
}
else {
self.badgeImageView.image = nil;
}
}
}