Parcourir la source

fix recordTime must > 1s

faterhenry il y a 6 ans
Parent
commit
c87e54db34

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

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