mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 09:02:44 +02:00
reskin: Fix header display of room preview
This commit is contained in:
@@ -1628,6 +1628,14 @@
|
||||
}
|
||||
|
||||
self.previewHeaderContainer.hidden = NO;
|
||||
|
||||
// Consider the main navigation controller if the current view controller is embedded inside a split view controller.
|
||||
UINavigationController *mainNavigationController = self.navigationController;
|
||||
if (self.splitViewController.isCollapsed && self.splitViewController.viewControllers.count)
|
||||
{
|
||||
mainNavigationController = self.splitViewController.viewControllers.firstObject;
|
||||
}
|
||||
mainNavigationController.navigationBar.translucent = isVisible;
|
||||
|
||||
// Finalize preview header display according to the screen orientation
|
||||
[self refreshPreviewHeader:UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])];
|
||||
|
||||
Reference in New Issue
Block a user