Bläddra i källkod

Fix runtime exception when re-entering the open function too early

Felix Paul Kühne 9 år sedan
förälder
incheckning
5d76103204

+ 0 - 1
Sources/VLCBoxController.m

@@ -105,7 +105,6 @@
 
 - (void)boxApiTokenDidRefresh
 {
-    NSLog(@"%s", __PRETTY_FUNCTION__);
     [[NSNotificationCenter defaultCenter] postNotificationName:VLCBoxControllerSessionUpdated object:nil];
 }
 

+ 2 - 0
Sources/VLCLibraryViewController.m

@@ -845,6 +845,8 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
     NSArray *visibleCells = [collectionView visibleCells];
     NSUInteger cellCount = visibleCells.count;
 
+    [collectionView deselectItemAtIndexPath:indexPath animated:NO];
+
     if (self.editing) {
         if (_libraryMode == VLCLibraryModeCreateFolder) {
             _folderObject = _foundMedia[indexPath.item];

+ 0 - 2
Sources/VLCOneDriveController.m

@@ -180,12 +180,10 @@
 
 - (BOOL)restoreFromSharedCredentials
 {
-    NSLog(@"%s", __PRETTY_FUNCTION__);
     LiveAuthStorage *authStorage = [[LiveAuthStorage alloc] initWithClientId:kVLCOneDriveClientID];
     NSUbiquitousKeyValueStore *ubiquitousStore = [NSUbiquitousKeyValueStore defaultStore];
     [ubiquitousStore synchronize];
     NSString *credentials = [ubiquitousStore stringForKey:kVLCStoreOneDriveCredentials];
-    NSLog(@"have credentials %@", credentials);
     if (!credentials)
         return NO;
 

+ 0 - 8
Sources/VLCPlaybackController+MediaLibrary.m

@@ -34,14 +34,6 @@
     }
     else if ([mediaObject isKindOfClass:[MLShowEpisode class]])
         [self configureWithShowEpisode:(MLShowEpisode *)mediaObject];
-
-    if (self.activePlaybackSession) {
-        self.sessionWillRestart = YES;
-        [self stopPlayback];
-    } else {
-        self.sessionWillRestart = NO;
-        [self startPlayback];
-    }
 }
 
 /*