Skip to content

Commit

Permalink
Set progress background color only once
Browse files Browse the repository at this point in the history
  • Loading branch information
brunow committed Jul 18, 2012
1 parent 5e8b4e9 commit a9e3b53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BWStatusBarOverlay/BWStatusBarOverlay.m
Expand Up @@ -141,6 +141,9 @@ - (id)init {

self.textLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth;

[self setProgressBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"status-bar-progress.png"]]];
self.statusLabel.textColor = self.textLabel.textColor;

[self initializeToDefaultState];
}

Expand Down Expand Up @@ -477,9 +480,6 @@ - (void)setStatusBarStyle:(UIStatusBarStyle)statusBarStyle {
[self setProgressBackgroundColor:[UIColor colorWithRed:48/255.0f green:159/255.0f blue:211/255.0f alpha:1]];
[self.activityView setActivityIndicatorViewStyle:UIActivityIndicatorViewStyleGray];
}

[self setProgressBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"status-bar-progress.png"]]];
self.statusLabel.textColor = self.textLabel.textColor;
}


Expand Down

0 comments on commit a9e3b53

Please sign in to comment.