eventbus and im 添加log打印。
This commit is contained in:
@@ -1254,6 +1254,8 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
.commitAllowingStateLoss()
|
||||
}
|
||||
|
||||
LogUtils.e("roomInfoEvent: ${messageEvent.toString()}")
|
||||
|
||||
val msgType = messageEvent.msgType
|
||||
val text = messageEvent.text
|
||||
|
||||
@@ -3184,6 +3186,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
fun onMusicEvent(event: Music?) {
|
||||
LogUtils.e("eventMain: ${event.toString()} Music: ${customMusicFloatingView != null}")
|
||||
if (customMusicFloatingView != null) {
|
||||
customMusicFloatingView!!.onMusicEvent(event)
|
||||
}
|
||||
@@ -3191,6 +3194,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
fun onMusicPlayBeanEvent(event: MusicPlayBean) {
|
||||
LogUtils.e("eventMain: ${event.toString()} MusicPlayBean: ${customMusicFloatingView != null}")
|
||||
if (customMusicFloatingView != null) {
|
||||
customMusicFloatingView!!.updateProgress(Math.toIntExact(event.position))
|
||||
}
|
||||
@@ -3198,6 +3202,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
fun onEventMain(event: BaseEvent?) {
|
||||
LogUtils.e("eventMain: ${event.toString()}")
|
||||
when (event) {
|
||||
is MusicEvent -> {
|
||||
if (!isMusic) {
|
||||
|
||||
Reference in New Issue
Block a user