Commit 7fdac41a by 刘鹏

feat: 蠢哭了的写法,记得改,冥想播放问题

parent 0f98c221
......@@ -2,19 +2,14 @@ package com.ydl.component
import android.Manifest
import android.annotation.SuppressLint
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import android.graphics.PixelFormat
import android.media.MediaPlayer
import android.net.Uri
import android.os.Build
import android.os.IBinder
import android.provider.Settings
import android.text.TextUtils
import android.util.DisplayMetrics
import android.util.Log
import android.view.*
import android.widget.ImageView
import android.widget.TextView
......@@ -54,8 +49,6 @@ import com.yidianling.tests.home.NewTestHomeActivity
import com.yidianling.user.api.service.IUserService
import com.yidianling.user.ui.collect.CollectSexAndBirthActivity
import com.yidianling.user.ui.login.OneKeyLoginHelp
import com.yidianling.user.widget.SecretDialog
import com.yidianling.user.widget.SecretDialog.OnSecretDialogListener
import de.greenrobot.event.EventBus
import io.feeeei.circleseekbar.CircleSeekBar
import io.reactivex.Observable
......@@ -405,7 +398,7 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
}
fun onEventMainThread(event: Any) {
if (event is com.ydl.ydlcommon.event.MeditationFloatEvent){
if (event is com.ydl.ydlcommon.event.MeditationFloatStopEvent){
mToShowWindow = event.show
if (event.show!=null && !event.show) {
if (event.stop == true){
......
......@@ -14,7 +14,7 @@ buildscript {
ydlrouter_version = '1.2.3'
constrait_support_version = '1.0.2'
componentVersion = "0.3.0.8-SNAPSHOT"
componentVersion = "0.3.0.8"
}
repositories {
mavenCentral()
......
......@@ -13,7 +13,7 @@ import com.ydl.media.audio.manager.NotifyManager
import com.ydl.media.audio.model.Music
import com.ydl.media.audio.receiver.NoisyAudioStreamReceiver
import com.ydl.media.audio.utils.PlayProgressUtil
import com.ydl.ydlcommon.event.MeditationFloatEvent
import com.ydl.ydlcommon.event.MeditationFloatStopEvent
import com.ydl.ydlcommon.utils.LogUtil
import com.yidianling.common.tools.ToastUtil
import de.greenrobot.event.EventBus
......@@ -344,7 +344,7 @@ class AudioPlayer private constructor() {
}
}
val event = MeditationFloatEvent(show = false, stop = true, time = null)
val event = MeditationFloatStopEvent(show = false, stop = true, time = null)
EventBus.getDefault().post(event)
}
......
package com.ydl.ydlcommon.event
class MeditationFloatEvent(
class MeditationFloatStopEvent(
val show: Boolean,
val stop: Boolean? = null,
val time: Long? = null
......
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