|
|
@@ -133,12 +133,14 @@ class CommonActivityRewardDialog : BaseDialogFragment(R.layout.layout_activity_r
|
|
|
if (canDispatch) {
|
|
|
goLocalLinkPage(activity, messageButton.buttonActionUrl)
|
|
|
}
|
|
|
+ dismiss()
|
|
|
}
|
|
|
|
|
|
AnchorMsgBtnAction.HttpPost -> {
|
|
|
val body =
|
|
|
messageButton.buttonActionBody?.toRequestBody("application/json; charset=utf-8".toMediaTypeOrNull())
|
|
|
AnchorModule.msgBtnHttpReq(url = messageButton.buttonActionUrl, body = body)
|
|
|
+ dismiss()
|
|
|
}
|
|
|
|
|
|
AnchorMsgBtnAction.Logout -> {
|
|
|
@@ -151,6 +153,7 @@ class CommonActivityRewardDialog : BaseDialogFragment(R.layout.layout_activity_r
|
|
|
lifecycleScope.launch {
|
|
|
if (RoomModule.getJoinedRoomId() != null) {
|
|
|
openGamePlayPanel.postValue(Unit)
|
|
|
+ dismiss()
|
|
|
return@launch
|
|
|
}
|
|
|
val recentRoomList = RoomModule.loadRecentRoomIdList()
|
|
|
@@ -177,8 +180,12 @@ class CommonActivityRewardDialog : BaseDialogFragment(R.layout.layout_activity_r
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- AnchorMsgBtnAction.NO -> {}
|
|
|
- else -> {}
|
|
|
+ AnchorMsgBtnAction.NO -> {
|
|
|
+ dismiss()
|
|
|
+ }
|
|
|
+ else -> {
|
|
|
+ dismiss()
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|