Commit 43196313 authored by Mathias Sauvestre's avatar Mathias Sauvestre Committed by Carola Nitz

Fixing player UI issue where Multi Selection menu wouldn't properly display...

Fixing player UI issue where Multi Selection menu wouldn't properly display its items because of orientation detection going wrong.
parent 505ad19c
Pipeline #112 failed with stage
in 0 seconds
......@@ -449,7 +449,7 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
return;
}
if (UIDeviceOrientationIsLandscape([UIDevice currentDevice].orientation)) {
if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])) {
_multiSelectionView.showsEqualizer = YES;
multiSelectionFrame = (CGRect){CGPointMake(0., 0.), [_multiSelectionView proposedDisplaySize]};
multiSelectionFrame.origin.x = controllerPanelFrame.size.width - multiSelectionFrame.size.width;
......@@ -1141,10 +1141,11 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
}
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
if (UIDeviceOrientationIsLandscape([UIDevice currentDevice].orientation))
if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])) {
_multiSelectionView.showsEqualizer = YES;
else
} else {
_multiSelectionView.showsEqualizer = NO;
}
}
CGRect workFrame = _multiSelectionView.frame;
......
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