From a50b04c25530abd2d14d33d385b52b622b4746ac Mon Sep 17 00:00:00 2001 From: bwin Date: Tue, 27 May 2014 16:23:23 +0200 Subject: [PATCH] fix ios-bug: statusbar color reset statusbar stayed black after use of inappbrowser _previousStatusBarStyle was set to -1 just before applying its value --- src/ios/CDVInAppBrowser.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ios/CDVInAppBrowser.m b/src/ios/CDVInAppBrowser.m index 8037a915f..abc374f5f 100644 --- a/src/ios/CDVInAppBrowser.m +++ b/src/ios/CDVInAppBrowser.m @@ -439,12 +439,12 @@ - (void)browserExit // Don't recycle the ViewController since it may be consuming a lot of memory. // Also - this is required for the PDF/User-Agent bug work-around. self.inAppBrowserViewController = nil; - - _previousStatusBarStyle = -1; if (IsAtLeastiOSVersion(@"7.0")) { [[UIApplication sharedApplication] setStatusBarStyle:_previousStatusBarStyle]; } + + _previousStatusBarStyle = -1; // this value was reset before reapplying it. caused statusbar to stay black on ios7 } @end