mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 05:36:57 +02:00
Room preview header in landscape
- Use UIInterfaceOrientationIsLandscape macro
This commit is contained in:
@@ -906,10 +906,7 @@
|
||||
self.previewHeaderContainer.hidden = NO;
|
||||
|
||||
// Finalize preview header display according to the screen orientation
|
||||
UIInterfaceOrientation currentScreenOrientation = [[UIApplication sharedApplication] statusBarOrientation];
|
||||
BOOL isLandscapeOriented = (currentScreenOrientation == UIInterfaceOrientationLandscapeRight || currentScreenOrientation == UIInterfaceOrientationLandscapeLeft);
|
||||
|
||||
[self refreshPreviewHeader:isLandscapeOriented];
|
||||
[self refreshPreviewHeader:UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user