房间公屏增加超管标识

This commit is contained in:
huangjian
2021-09-03 15:08:05 +08:00
parent 42cac60d44
commit b98ff32fe0
3 changed files with 16 additions and 13 deletions

View File

@@ -1751,7 +1751,10 @@ public class MessageView extends FrameLayout {
R.mipmap.ic_user_official_13dp, null) : null,
badgeWidth, badgeHeight)
.append(newUser ? Constants.NEW_USER_ICON : "", badgeWidth, badgeHeight)
.append(NobleUtil.getLocalResourcePath(userBadge), badgeWidth, badgeHeight);
.append(NobleUtil.getLocalResourcePath(userBadge), badgeWidth, badgeHeight)
.append(AvRoomDataManager.get().isSuperAdmin(chatRoomMessage.getFromAccount()) ? ResourcesCompat.getDrawable(getResources(),
R.drawable.ic_room_super_admin, null) : null,
SizeUtils.dp2px(tvContent.getContext(), 66), expLevelHeight);
// 官方主播认证
String tvOfficialMask = NobleUtil.getLevel(UserInfo.OAC_NAME, chatRoomMessage).trim();

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@@ -517,7 +517,6 @@ public class UserInfo implements Serializable {
}
public CarInfo getCarInfo() {
return mCarInfo;
}
@@ -579,6 +578,7 @@ public class UserInfo implements Serializable {
/**
* 判断是否为官方账号
*
* @return
*/
public boolean isOfficial() {
@@ -633,8 +633,8 @@ public class UserInfo implements Serializable {
/**
* 靓号变色
* @param defColor
* 非靓号颜色
*
* @param defColor 非靓号颜色
*/
public SpannableString getNick(int defColor) {