6.5.4礼物冠名

This commit is contained in:
18401019693 2023-08-04 16:28:43 +08:00
parent ebcfddf450
commit 6ba71508ca
5 changed files with 7 additions and 7 deletions

View File

@ -1441,7 +1441,7 @@ public class LiveAudienceActivity extends LiveActivity {
break;
case GIFT_WALL:
if (manager != null) {
manager.showGiftWall(event.getUid());
manager.showGiftWall(event.getUid(),event.isVoicePress());
}
break;

View File

@ -1658,7 +1658,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
break;
case GIFT_WALL:
if (mLiveRoomViewHolder != null) {
mLiveRoomViewHolder.showGiftWall(event.getUid());
mLiveRoomViewHolder.showGiftWall(event.getUid(),event.isVoicePress());
}
break;
}

View File

@ -272,7 +272,7 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
@Override
public void onViewClicks() {
Bus.get().post(new LiveAudienceEvent()
.setType(LiveAudienceEvent.LiveAudienceType.GIFT_WALL).setUid(mToUid));
.setType(LiveAudienceEvent.LiveAudienceType.GIFT_WALL).setUid(mToUid).setVoicePress(isAnchor));
dismiss();
}
});

View File

@ -2658,7 +2658,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
}
}
public void showGiftWall(String toUid) {
public void showGiftWall(String toUid,boolean isAnchor) {
GiftWallDialog giftWallDialog = new GiftWallDialog();
Bundle bundle = new Bundle();
bundle.putString(Constants.LIVE_UID, mLiveUid);
@ -2667,7 +2667,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
bundle.putString("mAvatarUrl", mAvatarUrl);
bundle.putString("toUid", toUid);
bundle.putInt("isAttention", isAttention);
bundle.putBoolean("isLive", mContext instanceof LiveRyAnchorActivity);
bundle.putBoolean("isLive", isAnchor);
giftWallDialog.setArguments(bundle);
giftWallDialog.show(((AbsActivity) mContext).getSupportFragmentManager(), "GiftWallDialog");

View File

@ -1910,10 +1910,10 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
mLiveRoomViewHolder.setAttention(attention);
}
public void showGiftWall(String toUid) {
public void showGiftWall(String toUid,boolean isAnchor) {
if (mLiveRoomViewHolder != null) {
mLiveRoomViewHolder.showGiftWall(toUid);
mLiveRoomViewHolder.showGiftWall(toUid,isAnchor);
}
}