酒吧 撩她动画播放 and setTime 显示。
This commit is contained in:
@@ -125,6 +125,10 @@ class RoomPubFragment(var mRoomInfoResp: RoomInfoResp?) :
|
||||
val bean = mRoomInfoResp?.room_info?.pit_list!![indexList[idx].toInt() - 1]
|
||||
view.setData(bean)
|
||||
|
||||
if (idx == 0 && mUserInfo?.user_id.toString() == bean.user_id) {
|
||||
mBinding.ivSetTime.visibility = View.VISIBLE
|
||||
}
|
||||
|
||||
if (idx != 0 && idx != 1) {
|
||||
if (!TextUtils.isEmpty(bean.user_id) && !bean.user_id.equals("0")) {
|
||||
startTimer(bean.end_time.toLong())
|
||||
@@ -308,12 +312,18 @@ class RoomPubFragment(var mRoomInfoResp: RoomInfoResp?) :
|
||||
|
||||
fun event1003(messageEvent: RoomMessageEvent) {
|
||||
val pitNumber = messageEvent.text.pit_number
|
||||
|
||||
if (indexList.contains(pitNumber)) {
|
||||
val viewPos = indexList.indexOf(pitNumber)
|
||||
val pitBean = mRoomInfoResp?.room_info?.pit_list!![pitNumber.toInt() - 1]
|
||||
pitBean.end_time = messageEvent.text.end_time
|
||||
viewList[viewPos].setData(pitBean)
|
||||
|
||||
if (mUserInfo?.user_id.toString() == pitBean.user_id) {
|
||||
mBinding.ivSetTime.visibility = View.VISIBLE
|
||||
}
|
||||
}
|
||||
|
||||
startTimer(messageEvent.text.end_time.toLong())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user