Permalink
Browse files

Fixed flashing of action indicator when ONLY calling an image-related…

… display
  • Loading branch information...
1 parent de13bef commit fe844d53f56744d5c3339c8472aab598424c4ea8 @zacaltman committed Jan 2, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 ZAActivityBar/ZAActivityBar.m
@@ -292,17 +292,17 @@ + (void)showImage:(UIImage *)image status:(NSString *)status forAction:(NSString
- (void)showImage:(UIImage*)image status:(NSString*)status duration:(NSTimeInterval)duration forAction:(NSString *)action {
- // Add the action if it doesn't exist yet
- if (![self actionExists:action]) {
- [self addAction:action withStatus:status];
- }
-
// Only continue if the action should be visible.
BOOL isPrimaryAction = [self isPrimaryAction:action];
if (!isPrimaryAction) {
[self removeAction:action];
return;
}
+
+ // Add the action if it doesn't exist yet
+ if (![self actionExists:action]) {
+ [self addAction:action withStatus:status];
+ }
if(![ZAActivityBar isVisible])
[ZAActivityBar showForAction:action];

0 comments on commit fe844d5

Please sign in to comment.