Commit 7ec2c746 authored by Tobias's avatar Tobias
Browse files

fix Missing volume overlay by correctly sending appearance transitions to control panel controller

and setting MPVolimeView hidden when control panel is not visible

closes #15963
parent f59a10db
......@@ -65,6 +65,18 @@ static const CGFloat maxCompactWidth = 420.0;
_compactMode = YES;
[self setupConstraints:YES];
}
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
self.volumeView.hidden = NO;
}
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
self.volumeView.hidden = YES;
}
- (void) viewWillLayoutSubviews {
[super viewWillLayoutSubviews];
......
......@@ -546,6 +546,8 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
_controlsHidden = hidden;
CGFloat alpha = _controlsHidden? 0.0f: 1.0f;
[self.controlPanelController beginAppearanceTransition:hidden animated:animated];
if (!_controlsHidden) {
_controllerPanel.alpha = 0.0f;
_controllerPanel.hidden = !_videoFiltersHidden;
......@@ -602,6 +604,8 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
_artistNameLabel.hidden = _audioOnly ? NO : _controlsHidden;
_albumNameLabel.hidden = _audioOnly ? NO : _controlsHidden;
_trackNameLabel.hidden = _audioOnly ? NO : _controlsHidden;
[self.controlPanelController endAppearanceTransition];
};
UIStatusBarAnimation animationType = animated? UIStatusBarAnimationFade: UIStatusBarAnimationNone;
......
Supports Markdown
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