Selaa lähdekoodia

MediaLibraryService: Cosmetic: Put application notification inside extension

Soomin Lee 5 vuotta sitten
vanhempi
commit
b9a2f4bfb6
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      SharedSources/MediaLibraryService.swift

+ 5 - 1
SharedSources/MediaLibraryService.swift

@@ -384,8 +384,12 @@ extension MediaLibraryService {
         mlMedia.titleIndex = Int64(player.indexOfCurrentTitle)
         //create a new thumbnail
     }
+}
+
+// MARK: - Application notifications
 
-    private func handleWillEnterForegroundNotification() {
+@objc private extension MediaLibraryService {
+    @objc private func handleWillEnterForegroundNotification() {
         guard let documentPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first else {
             assertionFailure("MediaLibraryService: handleWillEnterForegroundNotification: Failed to retrieve documentPath")
             return