@@ -186,25 +186,25 @@ - (void)updateProgressWithInterfaceOrientation:(UIInterfaceOrientation)interface
186
186
{
187
187
progressView = [[UIView alloc ] initWithFrame: CGRectMake (0 , 0 , 0 , 2.5 )];
188
188
progressView.backgroundColor = self.navigationBar .tintColor ;
189
- if ([self getPrimaryColor ]) {
190
- progressView.backgroundColor = [self getPrimaryColor ];
191
- }
192
189
progressView.clipsToBounds = YES ;
193
190
[self setProgressView: progressView];
194
191
}
192
+ if ([self getPrimaryColor ]) {
193
+ progressView.backgroundColor = [self getPrimaryColor ];
194
+ }
195
195
196
196
// Create background view if it doesn't exist
197
197
UIView *backgroundView = [self getBackgroundView ];
198
198
if (!backgroundView)
199
199
{
200
200
backgroundView = [[UIView alloc ] initWithFrame: CGRectMake (0 , 0 , 0 , 2.5 )];
201
201
backgroundView.backgroundColor = [UIColor clearColor ];
202
- if ([self getBackgroundColor ]) {
203
- backgroundView.backgroundColor = [self getBackgroundColor ];
204
- }
205
202
backgroundView.clipsToBounds = YES ;
206
203
[self setBackgroundView: backgroundView];
207
204
}
205
+ if ([self getBackgroundColor ]) {
206
+ backgroundView.backgroundColor = [self getBackgroundColor ];
207
+ }
208
208
209
209
// Calculate the frame of the navigation bar, based off the orientation.
210
210
UIView *topView = self.topViewController .view ;
0 commit comments