Commit d9757af2 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

library: trust the status bar more the device when checking the current rotation

parent 1766bc55
......@@ -122,6 +122,7 @@
- (void)viewWillAppear:(BOOL)animated
[super viewWillAppear:animated];
[self.collectionView.collectionViewLayout invalidateLayout];
[self _displayEmptyLibraryViewIfNeeded];
......@@ -429,7 +430,7 @@
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
if (UIDeviceOrientationIsLandscape([UIDevice currentDevice].orientation))
if (UIDeviceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation))
return CGSizeMake(341., 190.);
return CGSizeMake(384., 216.);
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