Browse Source

Fix status bar appearance in the future

Felix Paul Kühne 12 years ago
parent
commit
e6c41041ef

+ 2 - 2
AspenProject/VLC for iOS-Info.plist

@@ -182,8 +182,6 @@
 	<array>
 		<string>armv7</string>
 	</array>
-	<key>UIStatusBarStyle</key>
-	<string>UIStatusBarStyleBlackOpaque</string>
 	<key>UIStatusBarTintParameters</key>
 	<dict>
 		<key>UINavigationBar</key>
@@ -208,6 +206,8 @@
 		<string>UIInterfaceOrientationLandscapeLeft</string>
 		<string>UIInterfaceOrientationLandscapeRight</string>
 	</array>
+	<key>UIViewControllerBasedStatusBarAppearance</key>
+	<false/>
 	<key>UTImportedTypeDeclarations</key>
 	<array>
 		<dict>

+ 6 - 3
AspenProject/VLCMovieViewController.m

@@ -269,8 +269,10 @@
 
     [self.navigationController setNavigationBarHidden:YES animated:YES];
 
-    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
-        [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackTranslucent;
+    if (!SYSTEM_RUNS_IN_THE_FUTURE) {
+        if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
+            [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackTranslucent;
+    }
 
     [self _startPlayback];
 
@@ -445,7 +447,8 @@
         _idleTimer = nil;
     }
     [self.navigationController setNavigationBarHidden:NO animated:YES];
-    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackOpaque;
+    if (!SYSTEM_RUNS_IN_THE_FUTURE)
+        [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackOpaque;
     [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationFade];
     [super viewWillDisappear:animated];
 

+ 8 - 0
AspenProject/VLCPlaylistViewController.m

@@ -18,6 +18,11 @@
 #import "VLCAppDelegate.h"
 #import "UIBarButtonItem+Theme.h"
 
+
+#ifndef UIStatusBarStyleLightContent
+#define UIStatusBarStyleLightContent 1
+#endif
+
 @implementation EmptyLibraryView
 @end
 
@@ -126,6 +131,9 @@
     if (_foundMedia.count < 1)
         [self performSelector:@selector(reloadContents) withObject:nil afterDelay:.0];
     [[MLMediaLibrary sharedMediaLibrary] performSelector:@selector(libraryDidAppear) withObject:nil afterDelay:1.];
+
+    if (SYSTEM_RUNS_IN_THE_FUTURE)
+        [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
 }
 
 - (void)viewDidDisappear:(BOOL)animated