mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-27 19:56:57 +02:00
Prepare Dark Theme
Remove the [UIApplication statusBarHidden] use (deprecated since iOS 9). Use the default UIViewController-based status bar system. Hide the user interface theme option in Settings. https://github.com/vector-im/riot-meta/issues/22
This commit is contained in:
@@ -114,6 +114,19 @@
|
||||
self.defaultBarTintColor = kRiotSecondaryBgColor;
|
||||
}
|
||||
|
||||
- (BOOL)prefersStatusBarHidden
|
||||
{
|
||||
// Return the preferred value of the delegate if it is a view controller itself.
|
||||
// This is required to handle correctly the full screen mode when a media is selected.
|
||||
if ([self.delegate isKindOfClass:UIViewController.class])
|
||||
{
|
||||
return [(UIViewController*)self.delegate prefersStatusBarHidden];
|
||||
}
|
||||
|
||||
// Keep visible the status bar by default.
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (void)destroy
|
||||
{
|
||||
[super destroy];
|
||||
|
||||
Reference in New Issue
Block a user