瀏覽代碼

fix recordTime must > 1s

faterhenry 6 年之前
父節點
當前提交
c87e54db34
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/bomostory/sceneeditmodule/SceneEditActivity.kt

+ 1 - 1
src/main/java/com/bomostory/sceneeditmodule/SceneEditActivity.kt

@@ -596,7 +596,7 @@ class SceneEditActivity : AppCompatActivity(), ActorAdapter.OnActorDragListener,
                         }
                         }
                     }
                     }
                 }, 1000, 1000)
                 }, 1000, 1000)
-            } else {
+            } else if (recordingTime >= 1){
                 audioRecorder.stopRecording()
                 audioRecorder.stopRecording()
                 tv_scene_activity_record_time.visibility = View.INVISIBLE
                 tv_scene_activity_record_time.visibility = View.INVISIBLE
                 timer.cancel()
                 timer.cancel()