Просмотр исходного кода

fix: 个人资料页,房间没人的话需要展示 0人

XiaodongLin 8 месяцев назад
Родитель
Сommit
6ffa2d175a

+ 1 - 5
module/profile/src/main/java/com/adealink/weparty/profile/userprofile/view/ProfileUserInRoomViewBinder.kt

@@ -60,6 +60,7 @@ class ProfileUserInRoomViewBinder(private val lifecycleOwner: LifecycleOwner) :
 
 
                 binding.tvRoomMemberCount.text = item.memberCount.toString()
+                binding.tvRoomMemberCount.show()
                 binding.roomAvatarView.setImageUrl(item.roomCoverUrl)
 
                 binding.roomInfoView.onClick {
@@ -70,11 +71,6 @@ class ProfileUserInRoomViewBinder(private val lifecycleOwner: LifecycleOwner) :
                         )
                         .start()
                 }
-                if (item.memberCount != 0L) {
-                    binding.tvRoomMemberCount.show()
-                }else{
-                    binding.tvRoomMemberCount.gone()
-                }
             } else {
                 binding.roomInfoView.gone()
             }