update 直播間分享
This commit is contained in:
@@ -1 +1 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'com.android.library'
|
||||
@@ -101,6 +101,7 @@ import com.yunbao.live.http.LiveHttpUtil;
|
||||
import com.yunbao.live.presenter.LiveRoomCheckLivePresenter;
|
||||
import com.yunbao.live.views.LiveRoomPlayViewHolder;
|
||||
import com.yunbao.live.views.PortraitLiveManager;
|
||||
import com.yunbao.share.ui.SharePopDialog;
|
||||
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
import org.greenrobot.eventbus.Subscribe;
|
||||
@@ -909,6 +910,13 @@ public class LiveAudienceActivity extends LiveActivity {
|
||||
.setBean(mLiveBean)
|
||||
.setType(LiveAudienceEvent.LiveAudienceType.REPORT));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void share() {
|
||||
Bus.get().post(new LiveAudienceEvent()
|
||||
.setBean(mLiveBean)
|
||||
.setType(LiveAudienceEvent.LiveAudienceType.LIVE_SHARE));
|
||||
}
|
||||
});
|
||||
new XPopup.Builder(mContext)
|
||||
.hasShadowBg(false)
|
||||
@@ -1280,6 +1288,14 @@ public class LiveAudienceActivity extends LiveActivity {
|
||||
case LIVE_HIDE_MSG_RED:
|
||||
showMsgRed(-1);
|
||||
break;
|
||||
case LIVE_SHARE:
|
||||
new SharePopDialog(mContext)
|
||||
.setUid(CommonAppConfig.getInstance().getUid())
|
||||
.setAnchorId(event.getBean().getUid())
|
||||
.setAnchorName(event.getBean().getUserNiceName())
|
||||
.setAnchorAvatar(event.getBean().getAvatar())
|
||||
.showDialog();
|
||||
break;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -300,7 +300,8 @@ public class LiveAudienceEvent extends BaseModel {
|
||||
LIVE_VIDEO(54, "画质选择"),
|
||||
LUCKY_100_CHECK(55, "幸运百分百"),
|
||||
LIVE_END(56, "主播下播"),
|
||||
LIVE_HIDE_MSG_RED(57,"隐藏红点");
|
||||
LIVE_HIDE_MSG_RED(57,"隐藏红点"),
|
||||
LIVE_SHARE(58,"直播間分享");
|
||||
|
||||
private int type;
|
||||
private String name;
|
||||
|
||||
Reference in New Issue
Block a user