修复:送礼全服通知展示多个礼物名字问题
This commit is contained in:
parent
1ad9effe91
commit
f26fb83fec
@ -239,6 +239,7 @@ public class ImgLoader {
|
|||||||
public void onResourceReady(@NonNull Drawable resource, @Nullable Transition<? super Drawable> transition) {
|
public void onResourceReady(@NonNull Drawable resource, @Nullable Transition<? super Drawable> transition) {
|
||||||
if (callback != null) {
|
if (callback != null) {
|
||||||
callback.onLoadSuccess(resource);
|
callback.onLoadSuccess(resource);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,6 +154,7 @@ public class SocketRyClient {
|
|||||||
public void processBroadcast(String socketMsg) {
|
public void processBroadcast(String socketMsg) {
|
||||||
L.e("收到socket--->" + socketMsg);
|
L.e("收到socket--->" + socketMsg);
|
||||||
|
|
||||||
|
Log.i("SocketRyClient", "socketMsg" + socketMsg);
|
||||||
Log.i("SocketRyClient", "socketMsg" + socketMsg);
|
Log.i("SocketRyClient", "socketMsg" + socketMsg);
|
||||||
|
|
||||||
if (Constants.SOCKET_STOP_PLAY.equals(socketMsg)) {
|
if (Constants.SOCKET_STOP_PLAY.equals(socketMsg)) {
|
||||||
|
@ -68,12 +68,15 @@ public class AllMsgTextRender {
|
|||||||
ImgLoader.displayDrawable(context, url, new ImgLoader.DrawableCallback() {
|
ImgLoader.displayDrawable(context, url, new ImgLoader.DrawableCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onLoadSuccess(Drawable drawable) {
|
public void onLoadSuccess(Drawable drawable) {
|
||||||
|
if (builder!=null&&!builder.toString().contains(text)){
|
||||||
builder = createPrefix(drawable, builder);
|
builder = createPrefix(drawable, builder);
|
||||||
builder = renderMsg(color2, builder, text);
|
builder = renderMsg(color2, builder, text);
|
||||||
textView.setText(builder);
|
textView.setText(builder);
|
||||||
giftAnimPresenter.setCountDownTimerEnd(intoIndex);
|
giftAnimPresenter.setCountDownTimerEnd(intoIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onLoadFailed() {
|
public void onLoadFailed() {
|
||||||
builder = createPrefix(null, builder);
|
builder = createPrefix(null, builder);
|
||||||
|
@ -696,6 +696,11 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
mLiveRyLinkMicPkPresenter.release();
|
mLiveRyLinkMicPkPresenter.release();
|
||||||
mLiveRyLinkMicPkPresenter = null;
|
mLiveRyLinkMicPkPresenter = null;
|
||||||
}
|
}
|
||||||
|
if (mLiveEndViewHolder != null) {
|
||||||
|
mLiveEndViewHolder.removeFromParent();
|
||||||
|
mLiveEndViewHolder.release();
|
||||||
|
}
|
||||||
|
mLiveEndViewHolder = null;
|
||||||
if (isQuit) {
|
if (isQuit) {
|
||||||
isQuitF = true;
|
isQuitF = true;
|
||||||
if (mLiveAudienceViewHolder != null) {
|
if (mLiveAudienceViewHolder != null) {
|
||||||
@ -714,11 +719,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
mLiveRoomViewHolder.clearData();
|
mLiveRoomViewHolder.clearData();
|
||||||
mLiveRoomViewHolder.countDownTimerTrickery = null;
|
mLiveRoomViewHolder.countDownTimerTrickery = null;
|
||||||
}
|
}
|
||||||
if (mLiveEndViewHolder != null) {
|
|
||||||
mLiveEndViewHolder.removeFromParent();
|
|
||||||
mLiveEndViewHolder.release();
|
|
||||||
}
|
|
||||||
mLiveEndViewHolder = null;
|
|
||||||
mLiveAudienceViewHolder = null;
|
mLiveAudienceViewHolder = null;
|
||||||
mLivePlayViewHolder = null;
|
mLivePlayViewHolder = null;
|
||||||
mLiveRoomViewHolder = null;
|
mLiveRoomViewHolder = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user