Explorar el Código

MediaLibraryService: Cosmetic: Put application notification inside extension

Soomin Lee hace 5 años
padre
commit
b9a2f4bfb6
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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