Commit f03c518a by 范玉宾

Merge branch 'd/lancet/4.3.93_muse' into 'd/4.3.93_muse'

fix  meditationId  set value err

See merge request app_android_lib/YDL-Component!69
parents d9768508 11d2889f
...@@ -399,7 +399,8 @@ class PlayMeditationActivity : BaseActivity() { ...@@ -399,7 +399,8 @@ class PlayMeditationActivity : BaseActivity() {
"" ""
) )
val event = MeditationFloatEvent(true, val event = MeditationFloatEvent(true,
meditation = currentMeditation?.copy(meditationType = mMeditationType)) meditation = currentMeditation?.copy(meditationType = mMeditationType,meditationId =
mMeditationId?:0))
EventBus.getDefault().post(event) EventBus.getDefault().post(event)
Handler().postDelayed({ Handler().postDelayed({
...@@ -742,8 +743,8 @@ class PlayMeditationActivity : BaseActivity() { ...@@ -742,8 +743,8 @@ class PlayMeditationActivity : BaseActivity() {
private fun initMediaPlayer(path: String, current: Int) { private fun initMediaPlayer(path: String, current: Int) {
val event = MeditationFloatEvent(show = false,stop = false,meditation = currentMeditation) // val event = MeditationFloatEvent(show = false,stop = false,meditation = currentMeditation)
EventBus.getDefault().post(event) // EventBus.getDefault().post(event)
if (MediaPlayerManager.getInstance(this)?.getAudioPath() != null if (MediaPlayerManager.getInstance(this)?.getAudioPath() != null
&& MediaPlayerManager.getInstance(this)?.getAudioPath() == path && MediaPlayerManager.getInstance(this)?.getAudioPath() == path
......
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