Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
IBMS
/
nativeview
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0dc139b9
authored
Feb 22, 2022
by
huangzhicong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复录音底栏的异常行为
1、限制最大录音时长为2分钟 2、修复结束录音退出整个界面的问题
parent
21b9cb77
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
app/src/main/java/com/maxrocky/nativeview/fragment/RecorderBottomSheet.kt
+2
-3
No files found.
app/src/main/java/com/maxrocky/nativeview/fragment/RecorderBottomSheet.kt
View file @
0dc139b9
...
@@ -33,8 +33,8 @@ class RecorderBottomSheet : BottomSheetDialogFragment() {
...
@@ -33,8 +33,8 @@ class RecorderBottomSheet : BottomSheetDialogFragment() {
private
const
val
request_path
=
"request_path"
private
const
val
request_path
=
"request_path"
private
const
val
ARG_MAX_DURATION
=
"arg_max_duration"
private
const
val
ARG_MAX_DURATION
=
"arg_max_duration"
// 默认最大允许录音时长(
5
分钟)
// 默认最大允许录音时长(
2
分钟)
private
const
val
DEFAULT_MAX_RECORD_TIME
=
5
*
60
private
const
val
DEFAULT_MAX_RECORD_TIME
=
2
*
60
fun
createRecorderBundle
():
Bundle
=
Bundle
()
fun
createRecorderBundle
():
Bundle
=
Bundle
()
...
@@ -108,7 +108,6 @@ class RecorderBottomSheet : BottomSheetDialogFragment() {
...
@@ -108,7 +108,6 @@ class RecorderBottomSheet : BottomSheetDialogFragment() {
}
}
stop
.
setOnClickListener
{
stop
.
setOnClickListener
{
recorderViewModel
.
stop
()
recorderViewModel
.
stop
()
findNavController
().
popBackStack
()
}
}
start
.
setOnClickListener
{
start
.
setOnClickListener
{
try
{
try
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment