Commit c7f17394 by 刘鹏

Merge branch 'feat/lp/lp_v4.3.95' into 'd/v4.3.95'

声网优化代码合并

See merge request app_android_lib/YDL-Component!140
parents 366e99b6 15ce4787
...@@ -1259,7 +1259,7 @@ class AudioHomeActivity : ...@@ -1259,7 +1259,7 @@ class AudioHomeActivity :
totalDisposable = totalDisposable =
Observable.interval(0, 1, TimeUnit.SECONDS) Observable.interval(0, 1, TimeUnit.SECONDS)
.subscribeOn(Schedulers.computation()) .subscribeOn(Schedulers.computation())
.take(remainTime!!.toLong() + 60) .take(remainTime!!.toLong() + 1)
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe({ .subscribe({
localRemainTime = localRemainTime =
......
...@@ -552,21 +552,21 @@ class ConsultantAudioHomeActivity : ...@@ -552,21 +552,21 @@ class ConsultantAudioHomeActivity :
* 初始化界面用户信息 * 初始化界面用户信息
*/ */
private fun initUser() { private fun initUser() {
var userName = "咨询用户" var userName = "咨询"
if (null != mAudioMessageBean) { if (null != mAudioMessageBean) {
if (!TextUtils.isEmpty(mAudioMessageBean!!.userName)) { if (!TextUtils.isEmpty(mAudioMessageBean?.userName)) {
userName = mAudioMessageBean!!.userName!! userName = mAudioMessageBean?.userName!!
} }
if (!TextUtils.isEmpty(mAudioMessageBean!!.userIcon)) { if (!TextUtils.isEmpty(mAudioMessageBean?.userIcon)) {
var option = SimpleImageOpConfiger() var option = SimpleImageOpConfiger()
option.errorPic = R.drawable.audioim_head_place_hold_pic option.errorPic = R.drawable.audioim_head_place_hold_pic
option.loadingPic = R.drawable.audioim_head_place_hold_pic option.loadingPic = R.drawable.audioim_head_place_hold_pic
option.transform = 0 option.transform = 0
YDLImageCacheManager.showImage(this, mAudioMessageBean!!.userIcon, iv_head, option) YDLImageCacheManager.showImage(this, mAudioMessageBean?.userIcon, iv_head, option)
} else { } else {
iv_head.setBackgroundResource(R.drawable.audioim_head_place_hold_pic) iv_head.setBackgroundResource(R.drawable.audioim_head_place_hold_pic)
} }
userId = mAudioMessageBean!!.userId?.toInt() ?: -1 userId = mAudioMessageBean?.userId?.toInt() ?: -1
} else { } else {
iv_head.setBackgroundResource(R.drawable.audioim_head_place_hold_pic) iv_head.setBackgroundResource(R.drawable.audioim_head_place_hold_pic)
} }
......
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