InAppBrowser, iOS: Setting setStatusBarStyle to -1 causes CGContextSaveGState.

Simple if statement to ensure -1 is not submitted to setStatusBarStyle.
This commit is contained in:
Mario Rosa 2014-12-05 09:21:01 -05:00
parent abbbcc2461
commit d9900ba783

View File

@ -441,8 +441,10 @@
self.inAppBrowserViewController = nil;
if (IsAtLeastiOSVersion(@"7.0")) {
if (_previousStatusBarStyle != -1) {
[[UIApplication sharedApplication] setStatusBarStyle:_previousStatusBarStyle];
}
}
_previousStatusBarStyle = -1; // this value was reset before reapplying it. caused statusbar to stay black on ios7
}