Don't show a number for a count of 0 or 1.

This commit is contained in:
preble 2010-10-10 16:37:00 -04:00
parent d141fcddcd
commit c7f86950f7

View File

@ -139,7 +139,7 @@ const static CGFloat cellOffset = 40;
imageLayer.contents = item.image;
CATextLayer *textLayer = [layer.sublayers objectAtIndex:1];
if (item.count == 0)
if (item.count <= 1) // for 1 and 0, show no number.
textLayer.string = @"";
else
textLayer.string = [NSString stringWithFormat:@"%d", item.count];