Преглед на файлове

MediaLibraryService: Cosmetic: Put application notification inside extension

Soomin Lee преди 5 години
родител
ревизия
b9a2f4bfb6
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  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