Sfoglia il codice sorgente

micro-optimization

(cherry picked from commit eff3104df219bafa1222717e84a66586acbb320c)
Felix Paul Kühne 10 anni fa
parent
commit
f641f13069
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      Sources/VLCAppDelegate.m

+ 3 - 3
Sources/VLCAppDelegate.m

@@ -167,9 +167,9 @@ NSString *const VLCDropboxSessionWasAuthorized = @"VLCDropboxSessionWasAuthorize
         setupBlock();
     }
 
-    [[VLCNotificationRelay sharedRelay] addRelayLocalName:NSManagedObjectContextDidSaveNotification toRemoteName:@"org.videolan.ios-app.dbupdate"];
-
-    [[VLCNotificationRelay sharedRelay] addRelayLocalName:VLCPlaybackControllerPlaybackMetadataDidChange toRemoteName:kVLCDarwinNotificationNowPlayingInfoUpdate];
+    VLCNotificationRelay *notificationRelay = [VLCNotificationRelay sharedRelay];
+    [notificationRelay addRelayLocalName:NSManagedObjectContextDidSaveNotification toRemoteName:@"org.videolan.ios-app.dbupdate"];
+    [notificationRelay addRelayLocalName:VLCPlaybackControllerPlaybackMetadataDidChange toRemoteName:kVLCDarwinNotificationNowPlayingInfoUpdate];
 
     return YES;
 }