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

movie view controller: reduce external API

parent 9ff95208
......@@ -103,7 +103,4 @@
- (BOOL)rotationIsDisabled;
- (void)setControlsHidden:(BOOL)hidden animated:(BOOL)animated;
- (void)showStatusMessage:(NSString *)statusMessage;
@end
......@@ -495,6 +495,12 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
return YES;
}
- (void)dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion
{
[self setControlsHidden:YES animated:animated];
[super dismissViewControllerAnimated:flag completion:completion];
}
- (void) updateDefaults
{
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
......@@ -843,7 +849,7 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
- (void)showStatusMessage:(NSString *)statusMessage forPlaybackController:(VLCPlaybackController *)controller
{
[self showStatusMessage:statusMessage];
[self.statusLabel showStatusMessage:statusMessage];
}
- (void)displayMetadataForPlaybackController:(VLCPlaybackController *)controller
......@@ -1010,11 +1016,6 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
[self _resetIdleTimer];
}
- (void)showStatusMessage:(NSString *)statusMessage
{
[self.statusLabel showStatusMessage:statusMessage];
}
#pragma mark - multi-select delegation
- (void)toggleUILock
......@@ -1304,10 +1305,10 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
if ([vpc.mediaPlayer isPlaying]) {
[vpc.listPlayer pause];
[self.statusLabel showStatusMessage:@" ▌▌"];
[self.statusLabel showStatusMessage:@" ▌▌" forPlaybackController:nil];
} else {
[vpc.listPlayer play];
[self.statusLabel showStatusMessage:@" ►"];
[self.statusLabel showStatusMessage:@" ►" forPlaybackController:nil];
}
}
......
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