cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: CB-6769 ios: Fix statusbar color reset wasn't working on iOS7+
Date Fri, 27 Jun 2014 18:33:44 GMT
Repository: cordova-plugin-inappbrowser
Updated Branches:
  refs/heads/master c011fe2d9 -> 91b84579e


CB-6769 ios: Fix statusbar color reset wasn't working on iOS7+

close #45


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/commit/91b84579
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/91b84579
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/91b84579

Branch: refs/heads/master
Commit: 91b84579e8a85d2cf1b84420301c42c74c340473
Parents: c011fe2
Author: bwin <winkler@kerosieben.de>
Authored: Tue May 27 16:23:23 2014 +0200
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Jun 27 14:33:33 2014 -0400

----------------------------------------------------------------------
 src/ios/CDVInAppBrowser.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/91b84579/src/ios/CDVInAppBrowser.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVInAppBrowser.m b/src/ios/CDVInAppBrowser.m
index 059fcde..4169b6e 100644
--- a/src/ios/CDVInAppBrowser.m
+++ b/src/ios/CDVInAppBrowser.m
@@ -440,11 +440,11 @@
     // 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


Mime
View raw message