fix(chat): 대화 설정
- 대화 초기화 오른쪽에 30캔 안내 추가
This commit is contained in:
@@ -910,7 +910,7 @@ class ChatRoomActivity : BaseActivity<ActivityChatRoomBinding>(
|
||||
layoutInflater = this.layoutInflater,
|
||||
title = title,
|
||||
desc = desc,
|
||||
confirmButtonTitle = "초기화",
|
||||
confirmButtonTitle = "30캔으로 초기화",
|
||||
confirmButtonClick = {
|
||||
val loadingDialog = LoadingDialog(this, layoutInflater)
|
||||
loadingDialog.show(
|
||||
|
||||
@@ -7,10 +7,10 @@ import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.widget.ImageView
|
||||
import android.widget.LinearLayout
|
||||
import android.widget.RelativeLayout
|
||||
import androidx.fragment.app.DialogFragment
|
||||
import com.google.android.material.switchmaterial.SwitchMaterial
|
||||
import kr.co.vividnext.sodalive.R
|
||||
import kr.co.vividnext.sodalive.base.SodaDialog
|
||||
|
||||
/**
|
||||
* 채팅방 우측 상단 더보기 버튼 클릭 시 표시되는 전체화면 다이얼로그.
|
||||
@@ -65,21 +65,12 @@ class ChatRoomMoreDialogFragment : DialogFragment() {
|
||||
}
|
||||
|
||||
// 대화 초기화: Activity에 위임
|
||||
view.findViewById<LinearLayout>(R.id.row_reset)?.setOnClickListener {
|
||||
view.findViewById<RelativeLayout>(R.id.row_reset)?.setOnClickListener {
|
||||
(activity as? ChatRoomActivity)?.onResetChatRequested()
|
||||
}
|
||||
|
||||
// 신고하기 (임시 안내)
|
||||
view.findViewById<LinearLayout>(R.id.row_report)?.setOnClickListener {
|
||||
SodaDialog(
|
||||
requireActivity(),
|
||||
layoutInflater,
|
||||
title = "신고하기",
|
||||
desc = "신고하기 기능은 준비 중입니다.",
|
||||
confirmButtonTitle = "확인",
|
||||
confirmButtonClick = {},
|
||||
cancelButtonTitle = ""
|
||||
).show(resources.displayMetrics.widthPixels)
|
||||
view.findViewById<LinearLayout>(R.id.ll_btn_can)?.setOnClickListener {
|
||||
(activity as? ChatRoomActivity)?.onResetChatRequested()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user