6.5.4礼物冠名
This commit is contained in:
parent
ebcfddf450
commit
6ba71508ca
@ -1441,7 +1441,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
break;
|
break;
|
||||||
case GIFT_WALL:
|
case GIFT_WALL:
|
||||||
if (manager != null) {
|
if (manager != null) {
|
||||||
manager.showGiftWall(event.getUid());
|
manager.showGiftWall(event.getUid(),event.isVoicePress());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1658,7 +1658,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
|||||||
break;
|
break;
|
||||||
case GIFT_WALL:
|
case GIFT_WALL:
|
||||||
if (mLiveRoomViewHolder != null) {
|
if (mLiveRoomViewHolder != null) {
|
||||||
mLiveRoomViewHolder.showGiftWall(event.getUid());
|
mLiveRoomViewHolder.showGiftWall(event.getUid(),event.isVoicePress());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -272,7 +272,7 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
Bus.get().post(new LiveAudienceEvent()
|
Bus.get().post(new LiveAudienceEvent()
|
||||||
.setType(LiveAudienceEvent.LiveAudienceType.GIFT_WALL).setUid(mToUid));
|
.setType(LiveAudienceEvent.LiveAudienceType.GIFT_WALL).setUid(mToUid).setVoicePress(isAnchor));
|
||||||
dismiss();
|
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();
|
GiftWallDialog giftWallDialog = new GiftWallDialog();
|
||||||
Bundle bundle = new Bundle();
|
Bundle bundle = new Bundle();
|
||||||
bundle.putString(Constants.LIVE_UID, mLiveUid);
|
bundle.putString(Constants.LIVE_UID, mLiveUid);
|
||||||
@ -2667,7 +2667,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
bundle.putString("mAvatarUrl", mAvatarUrl);
|
bundle.putString("mAvatarUrl", mAvatarUrl);
|
||||||
bundle.putString("toUid", toUid);
|
bundle.putString("toUid", toUid);
|
||||||
bundle.putInt("isAttention", isAttention);
|
bundle.putInt("isAttention", isAttention);
|
||||||
bundle.putBoolean("isLive", mContext instanceof LiveRyAnchorActivity);
|
bundle.putBoolean("isLive", isAnchor);
|
||||||
giftWallDialog.setArguments(bundle);
|
giftWallDialog.setArguments(bundle);
|
||||||
giftWallDialog.show(((AbsActivity) mContext).getSupportFragmentManager(), "GiftWallDialog");
|
giftWallDialog.show(((AbsActivity) mContext).getSupportFragmentManager(), "GiftWallDialog");
|
||||||
|
|
||||||
|
@ -1910,10 +1910,10 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
mLiveRoomViewHolder.setAttention(attention);
|
mLiveRoomViewHolder.setAttention(attention);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void showGiftWall(String toUid) {
|
public void showGiftWall(String toUid,boolean isAnchor) {
|
||||||
|
|
||||||
if (mLiveRoomViewHolder != null) {
|
if (mLiveRoomViewHolder != null) {
|
||||||
mLiveRoomViewHolder.showGiftWall(toUid);
|
mLiveRoomViewHolder.showGiftWall(toUid,isAnchor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user