瀏覽代碼

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