Commit f93dc397 by 范玉宾

Merge branch 'd/meditation_bugfix' into 'd/v4.3.95'

D/meditation bugfix

See merge request app_android_lib/YDL-Component!136
parents b29b9ac6 d6e9d2a8
...@@ -80,6 +80,8 @@ class HomeMuseView(private val mContext: Context, private var homeEvent: IHomeEv ...@@ -80,6 +80,8 @@ class HomeMuseView(private val mContext: Context, private var homeEvent: IHomeEv
//防止连击 //防止连击
return@setOnClickListener return@setOnClickListener
} }
//冥想助眠更多点击事件
ActionCountUtils.count(HomeBIConstants.YDL_HOME_MEDITATION_MORE_CLICK)
if (!moreLink.isNullOrBlank()) { if (!moreLink.isNullOrBlank()) {
NewH5Activity.start(context, H5Params(moreLink, null)) NewH5Activity.start(context, H5Params(moreLink, null))
} }
......
...@@ -153,6 +153,8 @@ class PlayMeditationActivity : BaseActivity() { ...@@ -153,6 +153,8 @@ class PlayMeditationActivity : BaseActivity() {
mBuried = meditation.buried mBuried = meditation.buried
mStatus = meditation.status mStatus = meditation.status
collected = mStatus == 1
updateUI() updateUI()
initMediaPlayer( initMediaPlayer(
......
...@@ -28,7 +28,7 @@ class MediaPlayerTimeUtil { ...@@ -28,7 +28,7 @@ class MediaPlayerTimeUtil {
"$minute:$second" "$minute:$second"
} }
} }
}else if (time<60){ }else if (time in 1..59){
second = time second = time
return if (second in 0..9){ return if (second in 0..9){
"00:0$second" "00:0$second"
...@@ -36,7 +36,7 @@ class MediaPlayerTimeUtil { ...@@ -36,7 +36,7 @@ class MediaPlayerTimeUtil {
"00:$second" "00:$second"
} }
} }
return null return ""
} }
fun formatTimeOff(finishTime:Long):String{ fun formatTimeOff(finishTime:Long):String{
......
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