Przeglądaj źródła

暂停时 UI 刷新逻辑

jsonwang 3 lat temu
rodzic
commit
a080fdc746

+ 5 - 2
BFFramework/Classes/Stuckpoint/View/PQSelecteMusicView.swift

@@ -293,8 +293,11 @@ class PQSelecteMusicView: UIView {
     //暂停播放音乐 并刷新 UI
     func pausePlayer() {
         avPlayer.pause()
-        currentPlayData?.voiceStatue = .isPause
-        selectMusicCollection.reloadData()
+        if(currentPlayData?.voiceStatue == .isPlaying){
+            currentPlayData?.voiceStatue = .isPause
+            selectMusicCollection.reloadData()
+        }
+
     }
    
 }