Commit 7d490b50 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Cosmetics

(cherry picked from commit 5c6cd73a)
parent 04bcb884
......@@ -10,9 +10,6 @@
* Refer to the COPYING file of the official project for license.
*****************************************************************************/
#import <Foundation/Foundation.h>
@class VLCPlaybackController;
typedef NS_ENUM(NSUInteger, VLCPlayerDisplayControllerDisplayMode) {
......
......@@ -27,19 +27,9 @@ static NSString *const VLCPlayerDisplayControllerDisplayModeKey = @"VLCPlayerDis
+ (void)initialize
{
[[NSUserDefaults standardUserDefaults] registerDefaults:
@{
VLCPlayerDisplayControllerDisplayModeKey : @(VLCPlayerDisplayControllerDisplayModeFullscreen),
}];
[[NSUserDefaults standardUserDefaults] registerDefaults:@{VLCPlayerDisplayControllerDisplayModeKey : @(VLCPlayerDisplayControllerDisplayModeFullscreen)}];
}
- (instancetype)init
{
self = [super init];
if (self) {
}
return self;
}
static inline void commonSetup(VLCPlayerDisplayController *self)
{
NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
......@@ -124,8 +114,6 @@ static inline void commonSetup(VLCPlayerDisplayController *self)
return _movieViewController;
}
#pragma mark - Notification Handling
- (void)playbackDidStart:(NSNotification *)notification
......@@ -168,12 +156,12 @@ static inline void commonSetup(VLCPlayerDisplayController *self)
}
#pragma mark - presentation handling
- (BOOL)shouldAnimate
{
return [[UIApplication sharedApplication] applicationState] != UIApplicationStateBackground;
}
- (void)dismissPlaybackView
{
switch (self.displayMode) {
......@@ -205,9 +193,8 @@ static inline void commonSetup(VLCPlayerDisplayController *self)
}
}
#pragma mark - fullscreen player
- (void)_presentFullscreenPlaybackViewIfNeeded
{
if (!self.movieViewController.presentingViewController) {
......@@ -236,10 +223,8 @@ static inline void commonSetup(VLCPlayerDisplayController *self)
#pragma mark - miniplayer
- (void)_showHideMiniPlaybackView
{
VLCPlaybackController *playbackController = [VLCPlaybackController sharedInstance];
VLCMiniPlaybackView *miniPlaybackView = self.miniPlaybackView;
const NSTimeInterval animationDuration = 0.25;
......
......@@ -1569,9 +1569,6 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
NSUInteger substringCount = substrings.count;
NSUInteger searchStringCount = stringsToSearch.count;
NSLog(@"substrings: %@", substrings);
NSLog(@"strings to search %@", stringsToSearch);
for (NSUInteger x = 0; x < substringCount; x++) {
for (NSUInteger y = 0; y < searchStringCount; y++) {
nameRange = [stringsToSearch[y] rangeOfString:substrings[x] options:NSCaseInsensitiveSearch];
......
......@@ -252,7 +252,7 @@
- (void)_downloadFileFromMediaItem:(NSURL *)itemURL
{
NSLog(@"trying to download %@", [itemURL absoluteString]);
APLog(@"trying to download %@", [itemURL absoluteString]);
if (![[itemURL absoluteString] isSupportedFormat]) {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"FILE_NOT_SUPPORTED", nil) message:[NSString stringWithFormat:NSLocalizedString(@"FILE_NOT_SUPPORTED_LONG", nil), [itemURL absoluteString]] delegate:self cancelButtonTitle:NSLocalizedString(@"BUTTON_CANCEL", nil) otherButtonTitles:nil];
[alert show];
......
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