Commit 224f9f90 by 王佳洋

音频定位

parent be7c2d14
ext {
dev_mode = false//组件发布的时候需要设置为false
dev_mode = true//组件发布的时候需要设置为false
ydl2PublishVersion = "0.2.0.20-wjy"
ydlPublishVersion = [
// -------------- 业务模块 --------------
......
......@@ -91,7 +91,7 @@ class AudioPlayPresenter : BasePresenter<IAudioPlayContract.View, IAudioPlayCont
mCourPlayBean = bean
setPlayList(bean)
if (!mPlayUrl.isNullOrEmpty()) {
val position = mPlayList.indexOfLast {
val position = mPlayList.indexOfFirst {
mPlayUrl == it.url
}
mCurrentPosition = if (-1 == position) 0 else position
......
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