6.5.4礼物冠名
This commit is contained in:
parent
ebcfddf450
commit
6ba71508ca
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
@ -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");
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user