InAppBrowser, iOS: Setting setStatusBarStyle to -1 causes CGContextSaveGState.
Simple if statement to ensure -1 is not submitted to setStatusBarStyle.
This commit is contained in:
parent
abbbcc2461
commit
d9900ba783
@ -441,7 +441,9 @@
|
||||
self.inAppBrowserViewController = nil;
|
||||
|
||||
if (IsAtLeastiOSVersion(@"7.0")) {
|
||||
[[UIApplication sharedApplication] setStatusBarStyle:_previousStatusBarStyle];
|
||||
if (_previousStatusBarStyle != -1) {
|
||||
[[UIApplication sharedApplication] setStatusBarStyle:_previousStatusBarStyle];
|
||||
}
|
||||
}
|
||||
|
||||
_previousStatusBarStyle = -1; // this value was reset before reapplying it. caused statusbar to stay black on ios7
|
||||
|
Loading…
Reference in New Issue
Block a user