修改问题
This commit is contained in:
parent
3cca1a9e54
commit
cd3feebb94
@ -8,6 +8,17 @@ public class GuardModel extends BaseModel {
|
|||||||
private String type;
|
private String type;
|
||||||
@SerializedName("endtime")
|
@SerializedName("endtime")
|
||||||
private String endtime;
|
private String endtime;
|
||||||
|
@SerializedName("guard_type")
|
||||||
|
private String guardType;
|
||||||
|
|
||||||
|
public String getGuardType() {
|
||||||
|
return guardType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GuardModel setGuardType(String guardType) {
|
||||||
|
this.guardType = guardType;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public String getType() {
|
public String getType() {
|
||||||
return type;
|
return type;
|
||||||
|
@ -316,7 +316,7 @@ public class LiveTextRender {
|
|||||||
}
|
}
|
||||||
if (drawable != null) {
|
if (drawable != null) {
|
||||||
builder.append(" ");
|
builder.append(" ");
|
||||||
drawable.setBounds(0, 0, DpUtil.dp2px(35), DpUtil.dp2px(17));
|
drawable.setBounds(0, 0, DpUtil.dp2px(34), DpUtil.dp2px(17));
|
||||||
builder.setSpan(new VerticalImageSpan(drawable), index, index + 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
builder.setSpan(new VerticalImageSpan(drawable), index, index + 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||||
index = builder.length();
|
index = builder.length();
|
||||||
}
|
}
|
||||||
|
@ -696,12 +696,12 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
|
|
||||||
upDataPkScore(pkInfo.getJSONArray("userlist"), pkInfo.getIntValue("drpk_time"));
|
upDataPkScore(pkInfo.getJSONArray("userlist"), pkInfo.getIntValue("drpk_time"));
|
||||||
}
|
}
|
||||||
if (data.getGuardUserAvatar() != null) {
|
if (data.getEnterRoomInfo().getGuard() != null) {
|
||||||
if (mLiveRoomViewHolder != null) {
|
if (mLiveRoomViewHolder != null) {
|
||||||
if (TextUtils.isEmpty(data.getGuardUserAvatar().getGuardType())) {
|
if (TextUtils.isEmpty(data.getEnterRoomInfo().getGuard().getGuardType())) {
|
||||||
mLiveRoomViewHolder.setGuardType(0);
|
IMLoginManager.get(mContext).setGuardType(0);
|
||||||
} else {
|
} else {
|
||||||
int guardType = Integer.parseInt(data.getGuardUserAvatar().getGuardType());
|
int guardType = Integer.parseInt(data.getEnterRoomInfo().getGuard().getGuardType());
|
||||||
IMLoginManager.get(mContext).setGuardType(guardType);
|
IMLoginManager.get(mContext).setGuardType(guardType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user