Parcourir la source

VPC: use VLCKit's dialog provider

(cherry picked from commit c2ccf948dd48260f073a3c90e1d881f51d70a38e)
Felix Paul Kühne il y a 9 ans
Parent
commit
635335ec5c
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      Sources/VLCPlaybackController.m

+ 5 - 0
Sources/VLCPlaybackController.m

@@ -67,6 +67,8 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont
     BOOL _activeSession;
 
     NSLock *_playbackSessionManagementLock;
+
+    VLCDialogProvider *_dialogProvider;
 }
 
 @end
@@ -89,6 +91,7 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont
 
 - (void)dealloc
 {
+    _dialogProvider = nil;
     [[NSNotificationCenter defaultCenter] removeObserver:self];
 }
 
@@ -106,6 +109,8 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont
         [defaultCenter addObserver:self selector:@selector(applicationDidEnterBackground:)
                               name:UIApplicationDidEnterBackgroundNotification object:nil];
 
+        _dialogProvider = [[VLCDialogProvider alloc] initWithLibrary:[VLCLibrary sharedLibrary] customUI:NO];
+
         _playbackSessionManagementLock = [[NSLock alloc] init];
     }
     return self;