parent
48d1db3b79
commit
664f34ed5b
|
@ -328,8 +328,6 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||||
isStaff = {
|
isStaff = {
|
||||||
viewModel.isEqualToManagerId(it.toInt())
|
viewModel.isEqualToManagerId(it.toInt())
|
||||||
},
|
},
|
||||||
onClickSendMessage = { userId, nickname ->
|
|
||||||
},
|
|
||||||
onClickSetManager = {
|
onClickSetManager = {
|
||||||
setManagerMessageToPeer(userId = it)
|
setManagerMessageToPeer(userId = it)
|
||||||
viewModel.setManager(roomId = roomId, userId = it) {
|
viewModel.setManager(roomId = roomId, userId = it) {
|
||||||
|
|
|
@ -20,7 +20,6 @@ class LiveRoomUserProfileDialog(
|
||||||
private val userProfileLiveData: LiveData<GetLiveRoomUserProfileResponse>,
|
private val userProfileLiveData: LiveData<GetLiveRoomUserProfileResponse>,
|
||||||
layoutInflater: LayoutInflater,
|
layoutInflater: LayoutInflater,
|
||||||
private val isStaff: (Long) -> Boolean,
|
private val isStaff: (Long) -> Boolean,
|
||||||
private val onClickSendMessage: (Long, String) -> Unit,
|
|
||||||
private val onClickSetManager: (Long) -> Unit,
|
private val onClickSetManager: (Long) -> Unit,
|
||||||
private val onClickReleaseManager: (Long) -> Unit,
|
private val onClickReleaseManager: (Long) -> Unit,
|
||||||
private val onClickFollow: (Long) -> Unit,
|
private val onClickFollow: (Long) -> Unit,
|
||||||
|
@ -89,12 +88,6 @@ class LiveRoomUserProfileDialog(
|
||||||
dialogView.tvIntroduce.text = userProfile.introduce
|
dialogView.tvIntroduce.text = userProfile.introduce
|
||||||
|
|
||||||
dialogView.ivClose.setOnClickListener { alertDialog.dismiss() }
|
dialogView.ivClose.setOnClickListener { alertDialog.dismiss() }
|
||||||
dialogView.llSendMessage.setOnClickListener {
|
|
||||||
onClickSendMessage(
|
|
||||||
userProfile.userId,
|
|
||||||
userProfile.nickname
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
dialogView.tvIntroduce.setOnClickListener {
|
dialogView.tvIntroduce.setOnClickListener {
|
||||||
isIntroduceFold = !isIntroduceFold
|
isIntroduceFold = !isIntroduceFold
|
||||||
|
|
|
@ -91,19 +91,12 @@
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:id="@+id/ll_follow"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="21.3dp"
|
android:layout_marginTop="21.3dp"
|
||||||
android:baselineAligned="false"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/ll_follow"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginEnd="8dp"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:background="@drawable/bg_round_corner_23_3_transparent_9970ff"
|
android:background="@drawable/bg_round_corner_23_3_transparent_9970ff"
|
||||||
|
android:baselineAligned="false"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:paddingVertical="7.3dp"
|
android:paddingVertical="7.3dp"
|
||||||
|
@ -128,36 +121,6 @@
|
||||||
tools:text="팔로우" />
|
tools:text="팔로우" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/ll_send_message"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginEnd="3dp"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:background="@drawable/bg_round_corner_16_7_9970ff"
|
|
||||||
android:gravity="center"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:paddingVertical="7.3dp"
|
|
||||||
tools:ignore="UseCompoundDrawables">
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginEnd="4dp"
|
|
||||||
android:contentDescription="@null"
|
|
||||||
android:src="@drawable/ic_message_send" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:fontFamily="@font/gmarket_sans_bold"
|
|
||||||
android:gravity="center"
|
|
||||||
android:text="메시지 보내기"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
android:textSize="12sp" />
|
|
||||||
</LinearLayout>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_profile"
|
android:id="@+id/iv_profile"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|
Loading…
Reference in New Issue