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,8 +441,10 @@
|
|||||||
self.inAppBrowserViewController = nil;
|
self.inAppBrowserViewController = nil;
|
||||||
|
|
||||||
if (IsAtLeastiOSVersion(@"7.0")) {
|
if (IsAtLeastiOSVersion(@"7.0")) {
|
||||||
|
if (_previousStatusBarStyle != -1) {
|
||||||
[[UIApplication sharedApplication] setStatusBarStyle:_previousStatusBarStyle];
|
[[UIApplication sharedApplication] setStatusBarStyle:_previousStatusBarStyle];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_previousStatusBarStyle = -1; // this value was reset before reapplying it. caused statusbar to stay black on ios7
|
_previousStatusBarStyle = -1; // this value was reset before reapplying it. caused statusbar to stay black on ios7
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user