Commit e366d50e authored by Felix Paul Kühne's avatar Felix Paul Kühne

Movie View: simplify control hiding / showing code

parent b1507003
......@@ -343,37 +343,20 @@
_videoFilterView.hidden = _videoFiltersHidden;
_playbackSpeedView.alpha = 0.0f;
_playbackSpeedView.hidden = _playbackSpeedViewHidden;
_playbackSpeedButton.alpha = 0.0f;
_playbackSpeedButton.hidden = NO;
_videoFilterButton.alpha = 0.0f;
_videoFilterButton.hidden = NO;
_aspectRatioButton.alpha = 0.0f;
_aspectRatioButton.hidden = NO;
}
void (^animationBlock)() = ^() {
_controllerPanel.alpha = alpha;
_toolbar.alpha = alpha;
_videoFilterView.alpha = alpha;
_videoFilterButton.alpha = alpha;
_playbackSpeedView.alpha = alpha;
_playbackSpeedButton.alpha = alpha;
_videoFilterButton.alpha = alpha;
_aspectRatioButton.alpha = alpha;
};
void (^completionBlock)(BOOL finished) = ^(BOOL finished) {
if (_videoFiltersHidden) {
if (_videoFiltersHidden)
_controllerPanel.hidden = _controlsHidden;
_playbackSpeedButton.hidden = _controlsHidden;
_videoFilterButton.hidden = _controlsHidden;
_aspectRatioButton.hidden = _controlsHidden;
} else {
else
_controllerPanel.hidden = NO;
_playbackSpeedButton.hidden = NO;
_videoFilterButton.hidden = NO;
_aspectRatioButton.hidden = NO;
}
_toolbar.hidden = _controlsHidden;
_videoFilterView.hidden = _videoFiltersHidden;
_playbackSpeedView.hidden = _playbackSpeedViewHidden;
......
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