房间公屏增加超管标识
This commit is contained in:
@@ -1751,7 +1751,10 @@ public class MessageView extends FrameLayout {
|
|||||||
R.mipmap.ic_user_official_13dp, null) : null,
|
R.mipmap.ic_user_official_13dp, null) : null,
|
||||||
badgeWidth, badgeHeight)
|
badgeWidth, badgeHeight)
|
||||||
.append(newUser ? Constants.NEW_USER_ICON : "", 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();
|
String tvOfficialMask = NobleUtil.getLevel(UserInfo.OAC_NAME, chatRoomMessage).trim();
|
||||||
|
BIN
app/src/main/res/drawable-xhdpi/ic_room_super_admin.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_room_super_admin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.1 KiB |
@@ -273,14 +273,14 @@ public class UserInfo implements Serializable {
|
|||||||
private String familyId;
|
private String familyId;
|
||||||
|
|
||||||
private boolean newUser;
|
private boolean newUser;
|
||||||
public static String IS_NEW_USER="newUser";
|
public static String IS_NEW_USER = "newUser";
|
||||||
public static String IS_OFFICIAL="official";
|
public static String IS_OFFICIAL = "official";
|
||||||
public static String DEF_USER = "defUser";
|
public static String DEF_USER = "defUser";
|
||||||
public static String HAS_PRETTY = "hasPrettyErbanNo";
|
public static String HAS_PRETTY = "hasPrettyErbanNo";
|
||||||
public static String OAC_NAME = "officialAnchorCertificationName";
|
public static String OAC_NAME = "officialAnchorCertificationName";
|
||||||
public static String OAC_ICON = "officialAnchorCertificationIcon";
|
public static String OAC_ICON = "officialAnchorCertificationIcon";
|
||||||
public static String NAMEPLATE_WORD = "inRoomNameplateWord";
|
public static String NAMEPLATE_WORD = "inRoomNameplateWord";
|
||||||
public static String NAMEPLATE_PIC= "inRoomNameplatePic";
|
public static String NAMEPLATE_PIC = "inRoomNameplatePic";
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
@@ -323,8 +323,8 @@ public class UserInfo implements Serializable {
|
|||||||
this.remainDay = userInfo.remainDay;
|
this.remainDay = userInfo.remainDay;
|
||||||
this.newUser = userInfo.newUser;
|
this.newUser = userInfo.newUser;
|
||||||
this.phone = userInfo.phone;
|
this.phone = userInfo.phone;
|
||||||
this.isBindPhone=userInfo.isBindPhone;
|
this.isBindPhone = userInfo.isBindPhone;
|
||||||
this.bindType=userInfo.bindType;
|
this.bindType = userInfo.bindType;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -517,7 +517,6 @@ public class UserInfo implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public CarInfo getCarInfo() {
|
public CarInfo getCarInfo() {
|
||||||
return mCarInfo;
|
return mCarInfo;
|
||||||
}
|
}
|
||||||
@@ -542,7 +541,7 @@ public class UserInfo implements Serializable {
|
|||||||
this.userHeadwear = userHeadwear;
|
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) {
|
if (map == null) {
|
||||||
map = new HashMap<>();
|
map = new HashMap<>();
|
||||||
}
|
}
|
||||||
@@ -579,6 +578,7 @@ public class UserInfo implements Serializable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 判断是否为官方账号
|
* 判断是否为官方账号
|
||||||
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public boolean isOfficial() {
|
public boolean isOfficial() {
|
||||||
@@ -633,8 +633,8 @@ public class UserInfo implements Serializable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 靓号变色
|
* 靓号变色
|
||||||
* @param defColor
|
*
|
||||||
* 非靓号颜色
|
* @param defColor 非靓号颜色
|
||||||
*/
|
*/
|
||||||
public SpannableString getNick(int 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);
|
spannableString.setSpan(colorSpan, 0, nick.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
return spannableString;
|
return spannableString;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public static class Location{
|
public static class Location {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -712,7 +712,7 @@ public class UserInfo implements Serializable {
|
|||||||
* 官方主播认证铭牌
|
* 官方主播认证铭牌
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public static class NamePlate{
|
public static class NamePlate {
|
||||||
private long id;
|
private long id;
|
||||||
private String iconPic;
|
private String iconPic;
|
||||||
private String fixedWord;
|
private String fixedWord;
|
||||||
|
Reference in New Issue
Block a user