Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
f1d3e4db
Commit
f1d3e4db
authored
Mar 28, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:30秒倒计时挂断
parent
8a448150
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
config.gradle
config.gradle
+4
-4
AudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
+3
-3
No files found.
config.gradle
View file @
f1d3e4db
...
...
@@ -5,7 +5,7 @@ ext {
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.49.4
3
"
,
"m-confide"
:
"0.0.49.4
9
"
,
"m-consultant"
:
"0.0.60.03"
,
"m-fm"
:
"0.0.30.04"
,
"m-user"
:
"0.0.61.94"
,
...
...
@@ -39,7 +39,7 @@ ext {
"ydl-webview"
:
"0.0.38.47"
,
"ydl-media"
:
"0.0.21.42"
,
"ydl-pay"
:
"0.0.18.19"
,
"m-audioim"
:
"0.0.49.29.6
1
"
,
"m-audioim"
:
"0.0.49.29.6
7
"
,
"ydl-flutter-base"
:
"0.0.14.38"
,
//以下 几乎不会动
...
...
@@ -88,7 +88,7 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.49.4
3
"
,
"m-confide"
:
"0.0.49.4
9
"
,
"m-consultant"
:
"0.0.60.03"
,
"m-fm"
:
"0.0.30.07"
,
"m-user"
:
"0.0.61.94"
,
...
...
@@ -121,7 +121,7 @@ ext {
"ydl-webview"
:
"0.0.38.47"
,
"ydl-media"
:
"0.0.21.42"
,
"ydl-pay"
:
"0.0.18.19"
,
"m-audioim"
:
"0.0.49.29.6
1
"
,
"m-audioim"
:
"0.0.49.29.6
7
"
,
"ydl-flutter-base"
:
"0.0.14.38"
,
//以下 几乎不会动
...
...
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
View file @
f1d3e4db
...
...
@@ -721,7 +721,7 @@ class AudioHomeActivity :
//开始50s等待倒计时
waitDisposable
=
Observable
.
interval
(
0
,
100
,
TimeUnit
.
MILLISECONDS
).
subscribeOn
(
Schedulers
.
computation
())
.
take
(
7
00
).
observeOn
(
AndroidSchedulers
.
mainThread
()).
subscribe
({
.
take
(
6
00
).
observeOn
(
AndroidSchedulers
.
mainThread
()).
subscribe
({
val
remainTime
=
50
-
it
/
10
if
(
remainTime
<=
0
)
{
waittingStatus
()
...
...
@@ -732,9 +732,9 @@ class AudioHomeActivity :
if
(
remainTime
<=
20
){
audio_hangup_text
.
text
=
"挂断"
}
else
{
audio_hangup_text
.
text
=
"挂断(${remainTime-20}
)s
"
audio_hangup_text
.
text
=
"挂断(${remainTime-20}
s)
"
}
var
result
=
it
.
toFloat
()
-
20
var
result
=
it
.
toFloat
()
/
3f
progress_view
.
setProgress
(
result
)
if
(
result
>=
100f
&&
!
iv_hang_up
.
isEnabled
)
{
audio_hangup_text
.
text
=
"挂断"
...
...
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