You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2013/10/08 01:30:23 UTC

git commit: Match statusbar style to default background color of #000000

Updated Branches:
  refs/heads/plugins 254410f4a -> 02d77a083


Match statusbar style to default background color of #000000


Project: http://git-wip-us.apache.org/repos/asf/cordova-labs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-labs/commit/02d77a08
Tree: http://git-wip-us.apache.org/repos/asf/cordova-labs/tree/02d77a08
Diff: http://git-wip-us.apache.org/repos/asf/cordova-labs/diff/02d77a08

Branch: refs/heads/plugins
Commit: 02d77a08309ea5934ab0648c0370de02886eb209
Parents: 254410f
Author: Shazron Abdullah <sh...@apache.org>
Authored: Mon Oct 7 16:30:16 2013 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Mon Oct 7 16:30:16 2013 -0700

----------------------------------------------------------------------
 statusbar/src/ios/CDVStatusBar.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-labs/blob/02d77a08/statusbar/src/ios/CDVStatusBar.m
----------------------------------------------------------------------
diff --git a/statusbar/src/ios/CDVStatusBar.m b/statusbar/src/ios/CDVStatusBar.m
index bccb012..51efc3d 100644
--- a/statusbar/src/ios/CDVStatusBar.m
+++ b/statusbar/src/ios/CDVStatusBar.m
@@ -48,6 +48,7 @@
     
     _statusBarBackgroundView = [[UIView alloc] initWithFrame:frame];
     _statusBarBackgroundView.backgroundColor = [UIColor blackColor];
+    [self styleLightContent:nil]; // match default backgroundColor of #000000
     
     NSString* setting;
     
@@ -87,7 +88,6 @@
         bounds.size.height -= statusBarFrame.size.height;
         
         self.webView.frame = bounds;
-        [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque];
         [self.webView.superview addSubview:_statusBarBackgroundView];
     }