Commit 1430860e by 严久程

声网倒计时按钮点击逻辑优化

parent cbe84745
...@@ -42,7 +42,7 @@ ext { ...@@ -42,7 +42,7 @@ ext {
ydlPublishVersion = [ ydlPublishVersion = [
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
"m-confide" : "0.0.48.7.5", "m-confide" : "0.0.48.7.7",
"m-consultant" : "0.0.57.4", "m-consultant" : "0.0.57.4",
"m-fm" : "0.0.29.3", "m-fm" : "0.0.29.3",
"m-user" : "0.0.60.1", "m-user" : "0.0.60.1",
...@@ -75,7 +75,7 @@ ext { ...@@ -75,7 +75,7 @@ ext {
"ydl-webview" : "0.0.38.24", "ydl-webview" : "0.0.38.24",
"ydl-media" : "0.0.20", "ydl-media" : "0.0.20",
"ydl-pay" : "0.0.17", "ydl-pay" : "0.0.17",
"m-audioim" : "0.0.48.2.5", "m-audioim" : "0.0.48.2.7",
"ydl-flutter-base": "0.0.10.9", "ydl-flutter-base": "0.0.10.9",
//以下 几乎不会动 //以下 几乎不会动
...@@ -121,7 +121,7 @@ ext { ...@@ -121,7 +121,7 @@ ext {
"ydl-webview" : "0.0.38.24", "ydl-webview" : "0.0.38.24",
"ydl-media" : "0.0.20", "ydl-media" : "0.0.20",
"ydl-pay" : "0.0.17", "ydl-pay" : "0.0.17",
"m-audioim" : "0.0.48.2.5", "m-audioim" : "0.0.48.2.7",
"ydl-flutter-base": "0.0.10.9", "ydl-flutter-base": "0.0.10.9",
//以下 几乎不会动 //以下 几乎不会动
......
...@@ -628,19 +628,19 @@ class AudioHomeActivity : ...@@ -628,19 +628,19 @@ class AudioHomeActivity :
YDLRTMClient.instances.call(listenerUid!!, channelId, sendDoctocrMsg) YDLRTMClient.instances.call(listenerUid!!, channelId, sendDoctocrMsg)
Observable.interval(0, 100, TimeUnit.MILLISECONDS) // Observable.interval(0, 100, TimeUnit.MILLISECONDS)
.subscribeOn(Schedulers.computation()) // .subscribeOn(Schedulers.computation())
.take(303) // .take(303)
.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等待倒计时 //开始60s等待倒计时
waitDisposable = Observable.interval(0, 100, TimeUnit.MILLISECONDS) waitDisposable = Observable.interval(0, 100, TimeUnit.MILLISECONDS)
......
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 to comment