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
971b1fc0
Commit
971b1fc0
authored
Mar 11, 2020
by
严久程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
声网 倒计时按钮逻辑
parent
2db1ac74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
AudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
+13
-6
No files found.
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
View file @
971b1fc0
...
@@ -627,19 +627,26 @@ class AudioHomeActivity :
...
@@ -627,19 +627,26 @@ class AudioHomeActivity :
sendDoctocrMsg
=
Gson
().
toJson
(
msgBean
)
sendDoctocrMsg
=
Gson
().
toJson
(
msgBean
)
YDLRTMClient
.
instances
.
call
(
listenerUid
!!
,
channelId
,
sendDoctocrMsg
)
YDLRTMClient
.
instances
.
call
(
listenerUid
!!
,
channelId
,
sendDoctocrMsg
)
//开始60s等待倒计时
waitDisposable
=
Observable
.
interval
(
0
,
100
,
TimeUnit
.
MILLISECONDS
)
Observable
.
interval
(
0
,
100
,
TimeUnit
.
MILLISECONDS
)
.
subscribeOn
(
Schedulers
.
computation
())
.
subscribeOn
(
Schedulers
.
computation
())
.
take
(
6
03
)
.
take
(
3
03
)
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
({
.
subscribe
({
var
result
=
it
.
toFloat
()
/
2.5f
var
result
=
it
.
toFloat
()
/
2.5f
progress_view
.
setProgress
(
result
)
progress_view
.
setProgress
(
result
)
if
(
result
>=
100f
&&
!
iv_hang_up
.
isEnabled
)
{
if
(
result
>=
100f
&&
!
iv_hang_up
.
isEnabled
)
{
//挂断按钮可点击
//挂断按钮可点击
iv_hang_up
.
isEnabled
=
true
iv_hang_up
.
isEnabled
=
true
iv_hang_up
.
setImageResource
(
R
.
drawable
.
audioim_img_hang_up
)
iv_hang_up
.
setImageResource
(
R
.
drawable
.
audioim_img_hang_up
)
}
}},{},{})
//开始60s等待倒计时
waitDisposable
=
Observable
.
interval
(
0
,
100
,
TimeUnit
.
MILLISECONDS
)
.
subscribeOn
(
Schedulers
.
computation
())
.
take
(
603
)
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
({
},
{
},
{
LogUtil
.
d
(
it
.
message
)
LogUtil
.
d
(
it
.
message
)
},
{
},
{
...
...
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