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

VLCDialogProvider: simplify dialog provider class forking

parent c91578b6
......@@ -36,25 +36,18 @@
- (instancetype)initWithLibrary:(VLCLibrary *)library customUI:(BOOL)customUI
{
#if TARGET_OS_IPHONE
#if !TARGET_OS_TV
if (customUI)
return [[VLCCustomDialogProvider alloc] initWithLibrary:library];
if (!SYSTEM_RUNS_IOS8_OR_LATER) {
return [[VLCEmbeddedDialogProvider alloc] initWithLibrary:library];
} else {
return [[VLCiOSLegacyDialogProvider alloc] initWithLibrary:library];
}
#else
if (customUI)
return [[VLCCustomDialogProvider alloc] initWithLibrary:library];
if (customUI)
return [[VLCCustomDialogProvider alloc] initWithLibrary:library];
if ([UIAlertController class]) {
return [[VLCEmbeddedDialogProvider alloc] initWithLibrary:library];
#endif
} else {
return [[VLCiOSLegacyDialogProvider alloc] initWithLibrary:library];
}
#else
if (customUI)
if (customUI) {
return [[VLCCustomDialogProvider alloc] initWithLibrary:library];
else {
} else {
NSLog(@"YOU NEED TO IMPLEMENT YOUR UI YOURSELF ON THE MAC");
return 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