Commit e24d43c1 by pye52

修复可能导致最大录制时长是负数的问题

parent 4fe0b5c8
......@@ -94,7 +94,7 @@ class RecorderBottomSheet : BottomSheetDialogFragment() {
start = view.findViewById(R.id.start)
var maxDuration = arguments?.getInt(ARG_MAX_DURATION)
if (maxDuration == null || maxDuration == 0 || maxDuration > DEFAULT_MAX_RECORD_TIME) {
if (maxDuration == null || maxDuration <= 0 || maxDuration > DEFAULT_MAX_RECORD_TIME) {
maxDuration = DEFAULT_MAX_RECORD_TIME
}
// 显示的录音限制时长不包含最大值,因此需要-1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment