|
@@ -58,6 +58,7 @@ import com.swago.room.databinding.FragmentBaseComBinding
|
|
|
import com.swago.room.dialog.AudienceListDialog
|
|
|
import com.swago.room.dialog.FanClubAnchorDialog
|
|
|
import com.swago.room.dialog.FanClubForUserDialog
|
|
|
+import com.swago.room.dialog.FooterMoreDialog
|
|
|
import com.swago.room.dialog.HouseGoLiveDialog
|
|
|
import com.swago.room.dialog.JoinFanClubDialog
|
|
|
import com.swago.room.dialog.LevelUpDialog
|
|
@@ -129,6 +130,7 @@ abstract class BaseComFragment<T : FragmentBaseComBinding> : BaseXFragment<T>(),
|
|
|
|
|
|
//暂时仅用户端使用
|
|
|
var isForbid = false //是否被禁言
|
|
|
+ var broadcastStatus: Int = 1 //房间状态
|
|
|
|
|
|
abstract val iHeader: IHeader
|
|
|
abstract val iFooter: IFooter
|
|
@@ -180,6 +182,8 @@ abstract class BaseComFragment<T : FragmentBaseComBinding> : BaseXFragment<T>(),
|
|
|
binding.headFl.addView(iHeader.getHeaderView())
|
|
|
binding.footerFl.addView(iFooter.getFooterView())
|
|
|
setHeaderViewPosition()
|
|
|
+ //获取直播间配置
|
|
|
+ roomVm.getRoomConfig(broadcastStatus)
|
|
|
//初始话语音列表
|
|
|
initAudioRvList()
|
|
|
//飘条
|
|
@@ -717,6 +721,17 @@ abstract class BaseComFragment<T : FragmentBaseComBinding> : BaseXFragment<T>(),
|
|
|
dialog?.show(childFragmentManager, "SendMsgDialog")
|
|
|
}
|
|
|
|
|
|
+ fun openMoreDialog(){
|
|
|
+ FooterMoreDialog.newInstance().apply {
|
|
|
+ openMessageFun = {
|
|
|
+ openMessageListDialog()
|
|
|
+ }
|
|
|
+ openShareFun = {
|
|
|
+ openShareDialog()
|
|
|
+ }
|
|
|
+ }.show(childFragmentManager , "FooterMoreDialog")
|
|
|
+ }
|
|
|
+
|
|
|
fun openMessageListDialog() {
|
|
|
msgListDialog = MessageListDialog.newInstance()
|
|
|
msgListDialog?.show(childFragmentManager, "MessageListDialog")
|
|
@@ -753,8 +768,6 @@ abstract class BaseComFragment<T : FragmentBaseComBinding> : BaseXFragment<T>(),
|
|
|
private var isFirst = true
|
|
|
override fun joinedRoom(iRoomInfo: IRoomInfo) {
|
|
|
roomOtherVm.getRedEnvelopeList()
|
|
|
- //获取直播间配置
|
|
|
- roomVm.getRoomConfig()
|
|
|
if (iRoomInfo.getRoomType() != RoomType.HOUSE.type){
|
|
|
roomOtherVm.getFirstWishGiftData(iRoomInfo.getRoomId())
|
|
|
}
|