Przeglądaj źródła

字幕为空时也不可点击

jsonwang 3 lat temu
rodzic
commit
ff330cad86

+ 1 - 1
BFRecordScreenKit/Classes/RecordScreen/Controller/BFRecordScreenController.swift

@@ -662,7 +662,7 @@ public class BFRecordScreenController: BFBaseViewController {
 
     @objc func editSubtitle() {
         BFLog(message: "编辑字幕 index:\(showSubtitleIndex)")
-        if !isNormalPlaying {
+        if !isNormalPlaying  && subtitleLabel.text?.count != 0{
             subtitleEditView.isHidden = false
             subtitleEditView.textView.becomeFirstResponder()
             subtitleEditView.setNewText(text: subtitleLabel.text ?? "", index: showSubtitleIndex)