修改中英文
This commit is contained in:
parent
8abf92d42c
commit
d8a0427791
@ -13,6 +13,7 @@ public class AllServerNotifyEvent extends BaseModel {
|
||||
//礼物名称
|
||||
@SerializedName("giftname")
|
||||
private String giftName;
|
||||
|
||||
//盲盒名称
|
||||
@SerializedName("box_type_name")
|
||||
private String boxTypeName;
|
||||
|
@ -91,6 +91,8 @@ public class SendBlindGiftEvent extends BaseModel {
|
||||
private Object dressId;
|
||||
@SerializedName("dress_name")
|
||||
private String dressName;
|
||||
@SerializedName("dress_nameen")
|
||||
private String dress_nameen;
|
||||
@SerializedName("display_src")
|
||||
private Object displaySrc;
|
||||
@SerializedName("effect_src")
|
||||
@ -101,6 +103,8 @@ public class SendBlindGiftEvent extends BaseModel {
|
||||
private Object nobleDress;
|
||||
@SerializedName("dress_msg")
|
||||
private String dressMsg;
|
||||
@SerializedName("dress_msg_en")
|
||||
private String dressMsgEN;
|
||||
@SerializedName("dress_colour")
|
||||
private String dressColour;
|
||||
@SerializedName("dress_threshold_value")
|
||||
@ -139,6 +143,15 @@ public class SendBlindGiftEvent extends BaseModel {
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getDress_nameen() {
|
||||
return dress_nameen;
|
||||
}
|
||||
|
||||
public SendBlindGiftEvent setDress_nameen(String dress_nameen) {
|
||||
this.dress_nameen = dress_nameen;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getUid() {
|
||||
return uid;
|
||||
}
|
||||
@ -545,6 +558,15 @@ public class SendBlindGiftEvent extends BaseModel {
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getDressMsgEN() {
|
||||
return dressMsgEN;
|
||||
}
|
||||
|
||||
public SendBlindGiftEvent setDressMsgEN(String dressMsgEN) {
|
||||
this.dressMsgEN = dressMsgEN;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getDressColour() {
|
||||
return dressColour;
|
||||
}
|
||||
|
@ -57,6 +57,8 @@ import com.yunbao.common.http.CommonHttpConsts;
|
||||
import com.yunbao.common.http.CommonHttpUtil;
|
||||
import com.yunbao.common.http.HttpCallback;
|
||||
import com.yunbao.common.http.HttpClient;
|
||||
import com.yunbao.common.http.LiveHttpConsts;
|
||||
import com.yunbao.common.http.LiveHttpUtil;
|
||||
import com.yunbao.common.http.live.LiveNetManager;
|
||||
import com.yunbao.common.manager.IMLoginManager;
|
||||
import com.yunbao.common.manager.IMRTCManager;
|
||||
@ -87,8 +89,6 @@ import com.yunbao.live.dialog.LiveWishListDialogFragment4Audience;
|
||||
import com.yunbao.live.dialog.RandomPkDialogFragment;
|
||||
import com.yunbao.live.event.LinkMicTxMixStreamEvent;
|
||||
import com.yunbao.live.event.LiveAudienceEvent;
|
||||
import com.yunbao.common.http.LiveHttpConsts;
|
||||
import com.yunbao.common.http.LiveHttpUtil;
|
||||
import com.yunbao.live.interfaces.LiveFunctionClickListener;
|
||||
import com.yunbao.live.interfaces.LivePushListener;
|
||||
import com.yunbao.live.music.LiveMusicDialogFragment;
|
||||
@ -379,7 +379,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
if (isDRPK != 1) {
|
||||
openMicWindow(1);
|
||||
} else {
|
||||
ToastUtil.show(WordUtil.isNewZh()?"您已在PK中":"You are already in the PK");
|
||||
ToastUtil.show(WordUtil.isNewZh() ? "您已在PK中" : "You are already in the PK");
|
||||
}
|
||||
break;
|
||||
case Constants.LIVE_FUNC_DR://多人PK
|
||||
@ -460,7 +460,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
}
|
||||
});
|
||||
} else {
|
||||
ToastUtil.show(WordUtil.isNewZh()?"您已在PK中":"You are already in the PK");
|
||||
ToastUtil.show(WordUtil.isNewZh() ? "您已在PK中" : "You are already in the PK");
|
||||
}
|
||||
break;
|
||||
case Constants.LIVE_FUNC_BEAUTY://美颜
|
||||
@ -489,14 +489,14 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
break;
|
||||
case Constants.LIVE_FUNC_WKS:
|
||||
String url = CommonAppConfig.HOST + "/h5/activity/weekStar/index.html?&uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken() + "&anchorUid=" + mLiveUid;
|
||||
ZhuangBanActivity.forward(mContext, url, false,0);
|
||||
ZhuangBanActivity.forward(mContext, url, false, 0);
|
||||
break;
|
||||
case Constants.LIVE_FUNC_LINK_MIC://连麦
|
||||
if (isDRPK != 1) {
|
||||
//openLinkMicAnchorWindow(false);
|
||||
openFreePkWindow();
|
||||
} else {
|
||||
ToastUtil.show(WordUtil.isNewZh()?"您已在PK中":"You are already in the PK");
|
||||
ToastUtil.show(WordUtil.isNewZh() ? "您已在PK中" : "You are already in the PK");
|
||||
}
|
||||
break;
|
||||
case Constants.LIVE_FUNC_WISHLIST://心愿单
|
||||
@ -517,7 +517,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
if (isDRPK != 1) {
|
||||
openRandomPkWindow();
|
||||
} else {
|
||||
ToastUtil.show(WordUtil.isNewZh()?"您已在PK中":"You are already in the PK");
|
||||
ToastUtil.show(WordUtil.isNewZh() ? "您已在PK中" : "You are already in the PK");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@ -795,7 +795,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
mLiveRoomViewHolder.startAnchorLight();
|
||||
//初始化女神说
|
||||
mLiveRoomViewHolder.initAnchorSay();
|
||||
mLiveRoomViewHolder.setGiftWall(obj.getString("gift_wall_lighten_number"),obj.getString("gift_wall_lighten_total"));
|
||||
mLiveRoomViewHolder.setGiftWall(obj.getString("gift_wall_lighten_number"), obj.getString("gift_wall_lighten_total"));
|
||||
}
|
||||
if (mLiveAnchorViewHolder == null) {
|
||||
mLiveAnchorViewHolder = new LiveRyAnchorViewHolder(mContext, mContainer);
|
||||
@ -1245,10 +1245,10 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
});
|
||||
//todo 安卓端状态码说明文档:https://docs.rongcloud.cn/v4/views/rtc/call/code/android.html
|
||||
Log.e("ry", rtcErrorCode + "aaaaaa" + CommonAppConfig.getInstance().getUid() + "VDSSSS" + pkUid);
|
||||
if(WordUtil.isNewZh()) {
|
||||
if (WordUtil.isNewZh()) {
|
||||
ToastUtil.show("邀请 " + pkUid + " 发送失败 :" + rtcErrorCode);
|
||||
}else{
|
||||
ToastUtil.show("invite " + pkUid + " failed:"+rtcErrorCode);
|
||||
} else {
|
||||
ToastUtil.show("invite " + pkUid + " failed:" + rtcErrorCode);
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -1298,9 +1298,9 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
@Override
|
||||
public void onSuccess() {
|
||||
if (!extra.equals(SOCKET_LIVE_DRPK_RANDOM)) {
|
||||
if(WordUtil.isNewZh()) {
|
||||
if (WordUtil.isNewZh()) {
|
||||
ToastUtil.show("邀请 " + pkUid + " 发送成功");
|
||||
}else{
|
||||
} else {
|
||||
ToastUtil.show("invite " + pkUid + " successful");
|
||||
}
|
||||
}
|
||||
@ -1490,8 +1490,8 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
}
|
||||
//插入盲盒礼物消息
|
||||
bean.getLiveChatBean().setType(LiveChatBean.BLIND_BOX);
|
||||
bean.getLiveChatBean().setContent(WordUtil.isNewZh()?event.getGiftMsg():event.getGiftMsgen());
|
||||
bean.getLiveChatBean().setGiftName(WordUtil.isNewZh()?event.getGiftname():event.getGiftname_en());
|
||||
bean.getLiveChatBean().setContent(WordUtil.isNewZh() ? event.getGiftMsg() : event.getGiftMsgen());
|
||||
bean.getLiveChatBean().setGiftName(WordUtil.isNewZh() ? event.getGiftname() : event.getGiftname_en());
|
||||
bean.getLiveChatBean().setUserNiceName(event.getUserNiceName());
|
||||
}
|
||||
|
||||
@ -1548,7 +1548,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
String weeklyStarUrl = CommonAppConfig.HOST + "/h5/activity/weekStar/index.html?&uid="
|
||||
+ userInfo.getId() +
|
||||
"&token=" + userInfo.getToken() + "&anchorUid=" + mLiveUid;
|
||||
ZhuangBanActivity.forward(mContext, weeklyStarUrl, false,0);
|
||||
ZhuangBanActivity.forward(mContext, weeklyStarUrl, false, 0);
|
||||
break;
|
||||
case WISH_LIST:
|
||||
LiveWishListDialogFragment4Audience fragment4Audience = new LiveWishListDialogFragment4Audience();
|
||||
@ -1629,6 +1629,9 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
if (mLiveRyLinkMicPkPresenter != null) {
|
||||
mLiveRyLinkMicPkPresenter.upDataPkScore(event.getPkScores(), event.getUid(), event.getTime());
|
||||
}
|
||||
if (mLiveRoomViewHolder != null) {
|
||||
mLiveRoomViewHolder.seisShowGif(true);
|
||||
}
|
||||
// if (mLiveRoomViewHolder != null) {
|
||||
// mLiveRoomViewHolder.hotAddVisibility(true);
|
||||
// }
|
||||
@ -1669,7 +1672,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
break;
|
||||
case GIFT_WALL:
|
||||
if (mLiveRoomViewHolder != null) {
|
||||
mLiveRoomViewHolder.showGiftWall(event.getUid(),event.isVoicePress(),event.getUname(),event.getAvatar());
|
||||
mLiveRoomViewHolder.showGiftWall(event.getUid(), event.isVoicePress(), event.getUname(), event.getAvatar());
|
||||
}
|
||||
break;
|
||||
case INPUT_DIALOG:
|
||||
@ -1690,12 +1693,14 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
public void GiftWallIlluminateEvent(GiftWallIlluminateEvent event) {
|
||||
if (mLiveRoomViewHolder != null) {
|
||||
mLiveRoomViewHolder.setGiftWall(String.valueOf(event.getNewNumber()), String.valueOf(event.getMaxNumber()));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查指定直播间连麦人数
|
||||
*
|
||||
@ -1773,7 +1778,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show(WordUtil.isNewZh()?"抱歉!出錯了!":"i \\'m sorry! An error occurred");
|
||||
ToastUtil.show(WordUtil.isNewZh() ? "抱歉!出錯了!" : "i \\'m sorry! An error occurred");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -1102,10 +1102,10 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
||||
}
|
||||
if (!TextUtils.isEmpty(event.getDressName()) && !TextUtils.isEmpty(event.getDressMsg())) {
|
||||
SpannableStringBuilder stringBuilder = new SpannableStringBuilder();
|
||||
String boxBlindMsg = String.format(mContext.getString(R.string.random_availability2), WordUtil.isNewZh()?event.getGiftname():event.getGiftname_en(), event.getDressName());
|
||||
String boxBlindMsg = String.format(mContext.getString(R.string.random_availability2), WordUtil.isNewZh()?event.getGiftname():event.getGiftname_en(),WordUtil.isNewZh()? event.getDressName():event.getDress_nameen());
|
||||
stringBuilder.append(boxBlindMsg);
|
||||
int dressNameIndex = boxBlindMsg.indexOf(event.getDressName());
|
||||
int dressNameSize = event.getDressName().length();
|
||||
int dressNameIndex = boxBlindMsg.indexOf(WordUtil.isNewZh()? event.getDressName():event.getDress_nameen());
|
||||
int dressNameSize =(WordUtil.isNewZh()? event.getDressName():event.getDress_nameen()).length();
|
||||
int giftNameIndex = boxBlindMsg.indexOf(WordUtil.isNewZh()?event.getGiftname():event.getGiftname_en());
|
||||
int giftNameSize = (WordUtil.isNewZh()?event.getGiftname():event.getGiftname_en()).length();
|
||||
stringBuilder.setSpan(new ForegroundColorSpan(Color.parseColor(event.getDressColour())),
|
||||
|
@ -2500,6 +2500,7 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
|
||||
* 更新Pk分数
|
||||
*/
|
||||
public void upDataPkScore(JSONArray pkScores, String uid, int time) {
|
||||
|
||||
String userID1 = (String) imageGrade1.getTag();
|
||||
String userID2 = (String) imageGrade2.getTag();
|
||||
String userID4 = (String) imageGrade4.getTag();
|
||||
|
@ -23,7 +23,6 @@ import com.yunbao.common.CommonAppConfig;
|
||||
import com.yunbao.common.CommonAppContext;
|
||||
import com.yunbao.common.Constants;
|
||||
import com.yunbao.common.bean.AiAutomaticSpeechModel;
|
||||
import com.yunbao.common.bean.FansMedalBean;
|
||||
import com.yunbao.common.bean.FansModel;
|
||||
import com.yunbao.common.bean.LinkMicUserBean;
|
||||
import com.yunbao.common.bean.LiveUserGiftBean;
|
||||
@ -391,20 +390,30 @@ public class SocketRyClient {
|
||||
} else if (action2 == 66) {//购买贵族
|
||||
buyVipByNotify(map);
|
||||
} else if (action2 == 88) {
|
||||
|
||||
JSONObject mCt = map.getJSONObject("ct");
|
||||
String boxType = map.getString("box_type");
|
||||
String boxTypeName = "";
|
||||
if (TextUtils.equals(boxType, "1")) {
|
||||
boxTypeName = WordUtil.isNewZh() ? "迷你盲盒" : "Mini blind box";
|
||||
} else if (TextUtils.equals(boxType, "2")) {
|
||||
boxTypeName = WordUtil.isNewZh() ? "典藏盲盒" : "Collection blind box";
|
||||
} else {
|
||||
boxTypeName = WordUtil.isNewZh() ? "PD盲盒" : "PD blind box";
|
||||
}
|
||||
AllServerNotifyEvent allServerNotifyEvent
|
||||
= new AllServerNotifyEvent()
|
||||
.setBlindBoxId(map.getString("blind_box_id"))
|
||||
.setBoxType(map.getString("box_type"))
|
||||
.setBoxTypeName(map.getString("box_type_name"))
|
||||
.setDressName(map.getString("dress_name"))
|
||||
.setBoxType(boxType)
|
||||
.setBoxTypeName(map.getString(boxTypeName))
|
||||
.setDressName(WordUtil.isNewZh() ? map.getString("dress_name") : TextUtils.isEmpty(map.getString("dress_nameen")) ? map.getString("dress_name") : map.getString("dress_nameen"))
|
||||
.setGiftNotification(map.getString("gift_notification"))
|
||||
.setGiftName(WordUtil.isNewZh()?map.getString("giftname"):map.getString("giftname_en"))
|
||||
.setGiftName(WordUtil.isNewZh() ? mCt.getString("giftname") : mCt.getString("giftnameen"))
|
||||
.setUserNiceName(map.getString("uname"))
|
||||
.setGiftIcon(map.getString("gifticon"))
|
||||
.setAnchorName(map.getString("ancherName"))
|
||||
.setDisplaySrc(map.getString("display_src"));
|
||||
Log.e("AllServerNotifyEvent", allServerNotifyEvent.toString());
|
||||
Log.e("AllServerNotifyEvent", map.toJSONString());
|
||||
Bus.get().post(new LiveAudienceEvent()
|
||||
.setType(LiveAudienceEvent.LiveAudienceType.BLIND_BOX)
|
||||
.setAllServerNotifyEvent(allServerNotifyEvent));
|
||||
@ -413,7 +422,7 @@ public class SocketRyClient {
|
||||
AllServerNotifyEvent allServerNotifyEvent
|
||||
= new AllServerNotifyEvent()
|
||||
.setUserNiceName(mCt.getString("user_nicename"))
|
||||
.setGiftName(WordUtil.isNewZh()?map.getString("giftname"):map.getString("giftname_en"))
|
||||
.setGiftName(WordUtil.isNewZh() ? map.getString("giftname") : map.getString("giftname_en"))
|
||||
.setGiftIcon(mCt.getString("gifticon"))
|
||||
.setRedPacket(true);
|
||||
Bus.get().post(new LiveAudienceEvent()
|
||||
@ -672,7 +681,7 @@ public class SocketRyClient {
|
||||
break;
|
||||
case Constants.WISH_LIST_PROGRESS:
|
||||
StringBuffer conString = new StringBuffer();
|
||||
conString.append(map.getString("msg"));
|
||||
conString.append(WordUtil.isNewZh() ? map.getString("msg") : map.getString("msg_en"));
|
||||
EventBus.getDefault().post(new LiveAudienceEvent()
|
||||
.setType(LiveAudienceEvent.LiveAudienceType.WISH_LIST_PROGRESS)
|
||||
.setWishListProgress(new WishModel()
|
||||
@ -865,7 +874,7 @@ public class SocketRyClient {
|
||||
String msgtype = map.getString("msgtype");
|
||||
if ("2".equals(msgtype)) {//发言,点亮
|
||||
if ("409002".equals(received.getRetcode())) {
|
||||
ToastUtil.show(WordUtil.isNewZh()?"你已經被禁言":"You\'ve been banned");
|
||||
ToastUtil.show(WordUtil.isNewZh() ? "你已經被禁言" : "You\'ve been banned");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1117,7 +1126,7 @@ public class SocketRyClient {
|
||||
chatBean.setGuardType(map.getInteger("guard_type"));
|
||||
}
|
||||
|
||||
if (CommonAppContext.lang.equals("chinese")) {
|
||||
if (WordUtil.isNewZh()) {
|
||||
chatBean.setContent(mContext.getString(R.string.live_send_gift_1) + receiveGiftBean.getGiftCount() + mContext.getString(R.string.live_send_gift_2) + receiveGiftBean.getGiftName());
|
||||
} else {
|
||||
chatBean.setContent(mContext.getString(R.string.live_send_gift_1) + " " + +receiveGiftBean.getGiftCount() + " " + mContext.getString(R.string.live_send_gift_2) + receiveGiftBean.getGiftnameen());
|
||||
|
@ -235,26 +235,29 @@ public class AllMsgTextRender {
|
||||
}
|
||||
|
||||
private void blind(SpannableStringBuilder spannableStringBuilder, TextView textView, AllServerNotifyEvent serverNotifyEvent, int giftNameIndex, int endName) {
|
||||
switch (Integer.parseInt(serverNotifyEvent.getBoxType())) {
|
||||
case 1:
|
||||
spannableStringBuilder.setSpan(new ForegroundColorSpan(Color.parseColor("#336DF7")),
|
||||
giftNameIndex,
|
||||
endName,
|
||||
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
break;
|
||||
case 2:
|
||||
spannableStringBuilder.setSpan(new ForegroundColorSpan(Color.parseColor("#FD5A9D")),
|
||||
giftNameIndex,
|
||||
endName,
|
||||
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
break;
|
||||
default:
|
||||
spannableStringBuilder.setSpan(new ForegroundColorSpan(Color.parseColor("#FCB514")),
|
||||
giftNameIndex,
|
||||
endName,
|
||||
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
break;
|
||||
if (giftNameIndex>0){
|
||||
switch (Integer.parseInt(serverNotifyEvent.getBoxType())) {
|
||||
case 1:
|
||||
spannableStringBuilder.setSpan(new ForegroundColorSpan(Color.parseColor("#336DF7")),
|
||||
giftNameIndex,
|
||||
endName,
|
||||
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
break;
|
||||
case 2:
|
||||
spannableStringBuilder.setSpan(new ForegroundColorSpan(Color.parseColor("#FD5A9D")),
|
||||
giftNameIndex,
|
||||
endName,
|
||||
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
break;
|
||||
default:
|
||||
spannableStringBuilder.setSpan(new ForegroundColorSpan(Color.parseColor("#FCB514")),
|
||||
giftNameIndex,
|
||||
endName,
|
||||
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
textView.setText(spannableStringBuilder);
|
||||
}
|
||||
|
||||
|
@ -18,6 +18,7 @@ import android.widget.TextView;
|
||||
|
||||
import com.yunbao.common.glide.ImgLoader;
|
||||
import com.yunbao.common.utils.DpUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.common.views.AbsViewHolder;
|
||||
import com.yunbao.live.R;
|
||||
import com.yunbao.live.bean.LiveReceiveGiftBean;
|
||||
@ -153,7 +154,7 @@ public class LiveGiftViewHolder extends AbsViewHolder {
|
||||
}
|
||||
if (TextUtils.isEmpty(mLastGiftKey) || !mLastGiftKey.equals(bean.getKey())) {
|
||||
ImgLoader.display(mContext, bean.getGiftIcon(), mGiftIcon);
|
||||
mContent.setText(new LiveTextRender().renderGiftInfo2(bean.getGiftName()));
|
||||
mContent.setText(new LiveTextRender().renderGiftInfo2(WordUtil.isNewZh()?bean.getGiftName():bean.getGiftnameen()));
|
||||
if (bean.getGiftCount() > 1) {
|
||||
mGiftGroupCount.setText("x" + bean.getGiftCount());
|
||||
mMulSign.setText(R.string.live_gift_send_lian_3);
|
||||
|
@ -717,7 +717,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
RequestOptions options = new RequestOptions().skipMemoryCache(true);//配置
|
||||
Glide.with(mContext).asGif()
|
||||
.apply(options)//应用配置
|
||||
.load(R.mipmap.drpkend)
|
||||
.load(WordUtil.isNewZh()?R.mipmap.drpkend:R.mipmap.drpkend_en)
|
||||
.listener(new RequestListener<GifDrawable>() {
|
||||
@Override
|
||||
public boolean onLoadFailed(@Nullable GlideException e, Object model, Target<GifDrawable> target, boolean isFirstResource) {
|
||||
@ -1064,6 +1064,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
changePkTime();
|
||||
break;
|
||||
case 1:
|
||||
isShowGif = false;
|
||||
dr_pk_end_gif.setVisibility(View.GONE);
|
||||
break;
|
||||
}
|
||||
@ -2380,7 +2381,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show(WordUtil.isNewZh()?"抱歉!出錯了!":"i \\'m sorry! An error occurred");
|
||||
ToastUtil.show(WordUtil.isNewZh() ? "抱歉!出錯了!" : "i \\'m sorry! An error occurred");
|
||||
pkUidTmp = "";
|
||||
}
|
||||
});
|
||||
@ -4824,6 +4825,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
*/
|
||||
private String userId2, userId3 = "", userId4;
|
||||
|
||||
public void seisShowGif(boolean isShowGif) {
|
||||
this.isShowGif = isShowGif;
|
||||
}
|
||||
|
||||
public void upDataPkScore(JSONArray pkScores, int time) {
|
||||
isShowGif = true;
|
||||
if (detailsView == null) {
|
||||
|
@ -201,7 +201,7 @@ public class LuckLiveGiftViewHolder extends AbsViewHolder {
|
||||
}
|
||||
if (TextUtils.isEmpty(mLastGiftKey) || !mLastGiftKey.equals(bean.getKey())) {
|
||||
ImgLoader.display(mContext, bean.getGiftIcon(), mGiftIcon);
|
||||
mContent.setText(new LiveTextRender().renderGiftInfo2(bean.getGiftName()));
|
||||
mContent.setText(new LiveTextRender().renderGiftInfo2(WordUtil.isNewZh()?bean.getGiftName():bean.getGiftnameen()));
|
||||
if (bean.getGiftCount() > 1) {
|
||||
mGiftGroupCount.setText("x" + bean.getGiftCount());
|
||||
mMulSign.setText(R.string.live_gift_send_lian_3);
|
||||
|
@ -1199,7 +1199,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
liveChatBean.setUserNiceName(event.getUserNiceName());
|
||||
liveChatBean.setType(LiveChatBean.BLIND_BOX);
|
||||
liveChatBean.setGiftName(event.getDressName());
|
||||
liveChatBean.setContent(event.getDressMsg());
|
||||
liveChatBean.setContent(WordUtil.isNewZh()?event.getDressMsg():event.getDressMsgEN());
|
||||
}
|
||||
//插入盲盒礼物消息
|
||||
bean.getLiveChatBean().setType(LiveChatBean.BLIND_BOX);
|
||||
|
@ -2398,8 +2398,8 @@
|
||||
|
||||
<pl.droidsonroids.gif.GifImageView
|
||||
android:id="@+id/dr_pk_end_gif"
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="140dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="200dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="false"
|
||||
android:layout_marginTop="160dp"
|
||||
|
BIN
live/src/main/res/mipmap-mdpi/drpkend_en.gif
Normal file
BIN
live/src/main/res/mipmap-mdpi/drpkend_en.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 990 KiB |
BIN
main/src/main/res/mipmap-b+en+us/multiplayerpk.png
Normal file
BIN
main/src/main/res/mipmap-b+en+us/multiplayerpk.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
Loading…
Reference in New Issue
Block a user