房间公屏增加超管标识

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

@@ -273,14 +273,14 @@ public class UserInfo implements Serializable {
private String familyId;
private boolean newUser;
public static String IS_NEW_USER="newUser";
public static String IS_OFFICIAL="official";
public static String IS_NEW_USER = "newUser";
public static String IS_OFFICIAL = "official";
public static String DEF_USER = "defUser";
public static String HAS_PRETTY = "hasPrettyErbanNo";
public static String OAC_NAME = "officialAnchorCertificationName";
public static String OAC_ICON = "officialAnchorCertificationIcon";
public static String NAMEPLATE_WORD = "inRoomNameplateWord";
public static String NAMEPLATE_PIC= "inRoomNameplatePic";
public static String NAMEPLATE_PIC = "inRoomNameplatePic";
@Getter
@Setter
@@ -323,8 +323,8 @@ public class UserInfo implements Serializable {
this.remainDay = userInfo.remainDay;
this.newUser = userInfo.newUser;
this.phone = userInfo.phone;
this.isBindPhone=userInfo.isBindPhone;
this.bindType=userInfo.bindType;
this.isBindPhone = userInfo.isBindPhone;
this.bindType = userInfo.bindType;
}
//
@@ -517,7 +517,6 @@ public class UserInfo implements Serializable {
}
public CarInfo getCarInfo() {
return mCarInfo;
}
@@ -542,7 +541,7 @@ public class UserInfo implements Serializable {
this.userHeadwear = userHeadwear;
}
public Map<String, Object> toMap(@Nullable Map<String, Object> map, UserInfo userInfo) {
public Map<String, Object> toMap(@Nullable Map<String, Object> map, UserInfo userInfo) {
if (map == null) {
map = new HashMap<>();
}
@@ -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) {
@@ -651,11 +651,11 @@ public class UserInfo implements Serializable {
spannableString.setSpan(colorSpan, 0, nick.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
}
return spannableString;
return spannableString;
}
@Data
public static class Location{
public static class Location {
/**
@@ -712,7 +712,7 @@ public class UserInfo implements Serializable {
* 官方主播认证铭牌
*/
@Data
public static class NamePlate{
public static class NamePlate {
private long id;
private String iconPic;
private String fixedWord;