Skip to content

Commit 8971d74

Browse files
author
Ilya Velilyaev
committed
fixed background color not setting
1 parent 93772f7 commit 8971d74

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Classes/NavigationController/UINavigationController+M13ProgressViewBar.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,25 +186,25 @@ - (void)updateProgressWithInterfaceOrientation:(UIInterfaceOrientation)interface
186186
{
187187
progressView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 2.5)];
188188
progressView.backgroundColor = self.navigationBar.tintColor;
189-
if ([self getPrimaryColor]) {
190-
progressView.backgroundColor = [self getPrimaryColor];
191-
}
192189
progressView.clipsToBounds = YES;
193190
[self setProgressView:progressView];
194191
}
192+
if ([self getPrimaryColor]) {
193+
progressView.backgroundColor = [self getPrimaryColor];
194+
}
195195

196196
//Create background view if it doesn't exist
197197
UIView *backgroundView = [self getBackgroundView];
198198
if (!backgroundView)
199199
{
200200
backgroundView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 2.5)];
201201
backgroundView.backgroundColor = [UIColor clearColor];
202-
if ([self getBackgroundColor]) {
203-
backgroundView.backgroundColor = [self getBackgroundColor];
204-
}
205202
backgroundView.clipsToBounds = YES;
206203
[self setBackgroundView:backgroundView];
207204
}
205+
if ([self getBackgroundColor]) {
206+
backgroundView.backgroundColor = [self getBackgroundColor];
207+
}
208208

209209
//Calculate the frame of the navigation bar, based off the orientation.
210210
UIView *topView = self.topViewController.view;

0 commit comments

Comments
 (0)