|
@@ -2468,12 +2468,7 @@ class RoomActivity : BaseActivity<RoomVm>(), LiveDialogFragmentListener, VoicePr
|
|
|
private fun showEndFragment(leaveInfo: LeaveInfo?) {
|
|
private fun showEndFragment(leaveInfo: LeaveInfo?) {
|
|
|
DialogUtils.dismissAllDialogFragment(fragmentManager = supportFragmentManager)
|
|
DialogUtils.dismissAllDialogFragment(fragmentManager = supportFragmentManager)
|
|
|
if (userLiveEndFragment != null || anchorLiveEndFragment != null) return
|
|
if (userLiveEndFragment != null || anchorLiveEndFragment != null) return
|
|
|
- liveFragment?.let {
|
|
|
|
|
- it.leaveChannel()
|
|
|
|
|
- }
|
|
|
|
|
- videoFragment?.let {
|
|
|
|
|
- it.leaveChannel()
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
updateRoomUI(BaseRoomVm.END_LIVE, true)
|
|
updateRoomUI(BaseRoomVm.END_LIVE, true)
|
|
|
if (viewModel.room?.isLive == true) {
|
|
if (viewModel.room?.isLive == true) {
|
|
|
anchorLiveEndFragment = AnchorLiveEndFragment.newInstance(leaveInfo)
|
|
anchorLiveEndFragment = AnchorLiveEndFragment.newInstance(leaveInfo)
|
|
@@ -2495,6 +2490,12 @@ class RoomActivity : BaseActivity<RoomVm>(), LiveDialogFragmentListener, VoicePr
|
|
|
.commitNowAllowingStateLoss()
|
|
.commitNowAllowingStateLoss()
|
|
|
}
|
|
}
|
|
|
// liveRoom?.isLive = false
|
|
// liveRoom?.isLive = false
|
|
|
|
|
+ liveFragment?.let {
|
|
|
|
|
+ it.leaveChannel()
|
|
|
|
|
+ }
|
|
|
|
|
+ videoFragment?.let {
|
|
|
|
|
+ it.leaveChannel()
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
fun exit() {
|
|
fun exit() {
|