Skip to content

Commit

Permalink
Fix the bug for the other property
Browse files Browse the repository at this point in the history
  • Loading branch information
gcamp committed Jun 2, 2011
1 parent 2fd194f commit fc67e7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GCDiscreetNotificationView/GCDiscreetNotificationView.m
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ - (CGPoint) hidingCenter {
#pragma mark Animated Setters

- (void) setTextLabel:(NSString *)aText animated:(BOOL)animated {
if (animated) {
if (animated && (self.showing || self.animating)) {
[self changePropretyAnimatedWithKeys:[NSArray arrayWithObject:GCDiscreetNotificationViewTextKey]
values:[NSArray arrayWithObject:aText]];
}
Expand All @@ -365,7 +365,7 @@ - (void) setShowActivity:(BOOL)activity animated:(BOOL)animated {
}

- (void) setTextLabel:(NSString *)aText andSetShowActivity:(BOOL)activity animated:(BOOL)animated {
if (animated) {
if (animated && (self.showing || self.animating)) {
[self changePropretyAnimatedWithKeys:[NSArray arrayWithObjects:GCDiscreetNotificationViewTextKey, GCDiscreetNotificationViewActivityKey, nil]
values:[NSArray arrayWithObjects:aText, [NSNumber numberWithBool:activity], nil]];
}
Expand Down

0 comments on commit fc67e7a

Please sign in to comment.