Commit e6c41041 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Fix status bar appearance in the future

parent 5beeb326
......@@ -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>
......
......@@ -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];
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment