自测修复,全服添加主播端
This commit is contained in:
parent
e982994ecd
commit
bbf5d159b4
@ -51,6 +51,7 @@ import com.yunbao.common.bean.MicUserBean;
|
|||||||
import com.yunbao.common.bean.SendMoneyLongModel;
|
import com.yunbao.common.bean.SendMoneyLongModel;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.dialog.NotCancelableDialog;
|
import com.yunbao.common.dialog.NotCancelableDialog;
|
||||||
|
import com.yunbao.common.event.AllServerNotifyFFGGGDJANEvent;
|
||||||
import com.yunbao.common.event.GiftWallIlluminateEvent;
|
import com.yunbao.common.event.GiftWallIlluminateEvent;
|
||||||
import com.yunbao.common.event.LiveSudGamePopupShowOrHideEvent;
|
import com.yunbao.common.event.LiveSudGamePopupShowOrHideEvent;
|
||||||
import com.yunbao.common.event.LoginInvalidEvent;
|
import com.yunbao.common.event.LoginInvalidEvent;
|
||||||
@ -1923,4 +1924,10 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||||
|
public void onAllServerNotifyFFGGGDJANEvent(AllServerNotifyFFGGGDJANEvent event) {
|
||||||
|
if (mLiveRoomViewHolder != null) {
|
||||||
|
mLiveRoomViewHolder.showAllServerNotifyFFGGGD(event,false);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -68,6 +68,16 @@ public class LiveReceiveGiftBean extends BaseModel {
|
|||||||
private String msg_en;
|
private String msg_en;
|
||||||
private String guard_type;
|
private String guard_type;
|
||||||
private AllServerNotifyFFGGGDJANEvent notifyFFGGGDJANEvent;
|
private AllServerNotifyFFGGGDJANEvent notifyFFGGGDJANEvent;
|
||||||
|
private boolean showB;
|
||||||
|
|
||||||
|
public boolean isShowB() {
|
||||||
|
return showB;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LiveReceiveGiftBean setShowB(boolean showB) {
|
||||||
|
this.showB = showB;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public AllServerNotifyFFGGGDJANEvent getNotifyFFGGGDJANEvent() {
|
public AllServerNotifyFFGGGDJANEvent getNotifyFFGGGDJANEvent() {
|
||||||
return notifyFFGGGDJANEvent;
|
return notifyFFGGGDJANEvent;
|
||||||
|
@ -39,6 +39,7 @@ import com.opensource.svgaplayer.SVGAImageView;
|
|||||||
import com.opensource.svgaplayer.SVGAParser;
|
import com.opensource.svgaplayer.SVGAParser;
|
||||||
import com.opensource.svgaplayer.SVGAVideoEntity;
|
import com.opensource.svgaplayer.SVGAVideoEntity;
|
||||||
import com.opensource.svgaplayer.utils.SVGARect;
|
import com.opensource.svgaplayer.utils.SVGARect;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.HtmlConfig;
|
import com.yunbao.common.HtmlConfig;
|
||||||
@ -905,7 +906,7 @@ public class LiveGiftAnimPresenter {
|
|||||||
} else if (action == 90) {
|
} else if (action == 90) {
|
||||||
showBuyGuardGiftAnimNew(notifyGuardEvent);
|
showBuyGuardGiftAnimNew(notifyGuardEvent);
|
||||||
} else if (action == 91) {
|
} else if (action == 91) {
|
||||||
showAllServerNotifyFFGGGD(bean.getNotifyFFGGGDJANEvent());
|
showAllServerNotifyFFGGGD(bean.getNotifyFFGGGDJANEvent(), bean.isShowB());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1099,7 +1100,7 @@ public class LiveGiftAnimPresenter {
|
|||||||
View iv_look_full_service_notice_new3;
|
View iv_look_full_service_notice_new3;
|
||||||
ImageView iv_look_full_service_notice_new2;
|
ImageView iv_look_full_service_notice_new2;
|
||||||
|
|
||||||
public void showAllServerNotifyFFGGGD(AllServerNotifyFFGGGDJANEvent event) {
|
public void showAllServerNotifyFFGGGD(AllServerNotifyFFGGGDJANEvent event, boolean showB) {
|
||||||
if (TextUtils.isEmpty(event.getBackgroundImage())) return;
|
if (TextUtils.isEmpty(event.getBackgroundImage())) return;
|
||||||
|
|
||||||
|
|
||||||
@ -1109,6 +1110,7 @@ public class LiveGiftAnimPresenter {
|
|||||||
LiveReceiveGiftBean bean = new LiveReceiveGiftBean();
|
LiveReceiveGiftBean bean = new LiveReceiveGiftBean();
|
||||||
bean.setSendtype(91);
|
bean.setSendtype(91);
|
||||||
bean.setNotifyFFGGGDJANEvent(event);
|
bean.setNotifyFFGGGDJANEvent(event);
|
||||||
|
bean.setShowB(showB);
|
||||||
mGifAll.offer(bean);
|
mGifAll.offer(bean);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -1135,6 +1137,16 @@ public class LiveGiftAnimPresenter {
|
|||||||
int unameSize = textMsg.length();
|
int unameSize = textMsg.length();
|
||||||
builder.setSpan(new ForegroundColorSpan(Color.parseColor(dto.getColour())), unameIndexOf, unameIndexOf + unameSize, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
builder.setSpan(new ForegroundColorSpan(Color.parseColor(dto.getColour())), unameIndexOf, unameIndexOf + unameSize, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||||
}
|
}
|
||||||
|
if (!showB){
|
||||||
|
iv_look_full_service_notice_new3.setVisibility(View.GONE);
|
||||||
|
}else {
|
||||||
|
if (TextUtils.equals(event.getJumpType(),"0")){
|
||||||
|
iv_look_full_service_notice_new3.setVisibility(View.GONE);
|
||||||
|
}else {
|
||||||
|
iv_look_full_service_notice_new3.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!TextUtils.isEmpty(event.getButtonImage())) {
|
if (!TextUtils.isEmpty(event.getButtonImage())) {
|
||||||
|
|
||||||
ImgLoader.display(mContext, event.getButtonImage(), iv_look_full_service_notice_new2);
|
ImgLoader.display(mContext, event.getButtonImage(), iv_look_full_service_notice_new2);
|
||||||
@ -1152,9 +1164,6 @@ public class LiveGiftAnimPresenter {
|
|||||||
iv_look_full_service_notice_new.setText(buttonString);
|
iv_look_full_service_notice_new.setText(buttonString);
|
||||||
}
|
}
|
||||||
iv_look_full_service_notice_new.setText(stringBuilder);
|
iv_look_full_service_notice_new.setText(stringBuilder);
|
||||||
} else {
|
|
||||||
iv_look_full_service_notice_new3.setVisibility(View.GONE);
|
|
||||||
iv_look_full_service_notice_new3.setVisibility(View.VISIBLE);
|
|
||||||
}
|
}
|
||||||
full_service_notice_new_text.postDelayed(new Runnable() {
|
full_service_notice_new_text.postDelayed(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
@ -1263,6 +1272,7 @@ public class LiveGiftAnimPresenter {
|
|||||||
ViewClicksAntiShake.clicksAntiShake(iv_look_full_service_notice_new, new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(iv_look_full_service_notice_new, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
|
MobclickAgent.onEvent(mContext, "new_full_server", "全服的埋点");
|
||||||
String jumpType = notifyFFGGGDJANEvent.getJumpType();
|
String jumpType = notifyFFGGGDJANEvent.getJumpType();
|
||||||
if (TextUtils.equals(jumpType, "1")) {
|
if (TextUtils.equals(jumpType, "1")) {
|
||||||
changeLiveRoom();
|
changeLiveRoom();
|
||||||
@ -1270,9 +1280,7 @@ public class LiveGiftAnimPresenter {
|
|||||||
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
||||||
if (!TextUtils.isEmpty(notifyFFGGGDJANEvent.getLink())) {
|
if (!TextUtils.isEmpty(notifyFFGGGDJANEvent.getLink())) {
|
||||||
StringBuffer htmlUrl = new StringBuffer();
|
StringBuffer htmlUrl = new StringBuffer();
|
||||||
htmlUrl.append(CommonAppConfig.HOST)
|
htmlUrl.append(notifyFFGGGDJANEvent.getLink())
|
||||||
.append("/")
|
|
||||||
.append(notifyFFGGGDJANEvent.getLink())
|
|
||||||
.append(notifyFFGGGDJANEvent.getLink().contains("?") ? "&uid=" : "?uid=")
|
.append(notifyFFGGGDJANEvent.getLink().contains("?") ? "&uid=" : "?uid=")
|
||||||
.append(userInfo.getId())
|
.append(userInfo.getId())
|
||||||
.append("&token=")
|
.append("&token=")
|
||||||
|
@ -3972,12 +3972,12 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void showAllServerNotifyFFGGGD(AllServerNotifyFFGGGDJANEvent notifyFFGGGDJANEvent) {
|
public void showAllServerNotifyFFGGGD(AllServerNotifyFFGGGDJANEvent notifyFFGGGDJANEvent,boolean showB) {
|
||||||
if (mLiveGiftAnimPresenter == null) {
|
if (mLiveGiftAnimPresenter == null) {
|
||||||
mLiveGiftAnimPresenter = new LiveGiftAnimPresenter(mContext, mContentView, mGifImageView, mSVGAImageView, mLiveGiftPrizePoolContainer, windowManager);
|
mLiveGiftAnimPresenter = new LiveGiftAnimPresenter(mContext, mContentView, mGifImageView, mSVGAImageView, mLiveGiftPrizePoolContainer, windowManager);
|
||||||
}
|
}
|
||||||
mLiveGiftAnimPresenter.setLiveUidStream(mLiveUid, mStream);
|
mLiveGiftAnimPresenter.setLiveUidStream(mLiveUid, mStream);
|
||||||
mLiveGiftAnimPresenter.showAllServerNotifyFFGGGD(notifyFFGGGDJANEvent);
|
mLiveGiftAnimPresenter.showAllServerNotifyFFGGGD(notifyFFGGGDJANEvent,showB);
|
||||||
}
|
}
|
||||||
|
|
||||||
//全服通知 购买坐骑
|
//全服通知 购买坐骑
|
||||||
|
@ -1312,7 +1312,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
|
|
||||||
public void showAllServerNotifyFFGGGD(AllServerNotifyFFGGGDJANEvent notifyFFGGGDJANEvent) {
|
public void showAllServerNotifyFFGGGD(AllServerNotifyFFGGGDJANEvent notifyFFGGGDJANEvent) {
|
||||||
if (mLiveRoomViewHolder != null) {
|
if (mLiveRoomViewHolder != null) {
|
||||||
mLiveRoomViewHolder.showAllServerNotifyFFGGGD(notifyFFGGGDJANEvent);
|
mLiveRoomViewHolder.showAllServerNotifyFFGGGD(notifyFFGGGDJANEvent,true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
<HorizontalScrollView
|
<HorizontalScrollView
|
||||||
android:id="@+id/view_horizontal"
|
android:id="@+id/view_horizontal"
|
||||||
|
android:layout_toStartOf="@id/ijiasdw"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
@ -32,7 +33,8 @@
|
|||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<net.lucode.hackware.magicindicator.MagicIndicator
|
<net.lucode.hackware.magicindicator.MagicIndicator
|
||||||
android:id="@+id/indicator"
|
android:id="@+id/indicator"
|
||||||
@ -43,12 +45,13 @@
|
|||||||
android:id="@+id/tvPlay"
|
android:id="@+id/tvPlay"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_marginLeft="25dp"
|
android:layout_marginStart="5dp"
|
||||||
android:layout_marginEnd="120dp"
|
android:layout_marginEnd="20dp"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:paddingTop="1dp"
|
android:paddingTop="1dp"
|
||||||
android:text="@string/main_type_theater"
|
android:text="@string/main_type_theater"
|
||||||
android:textColor="#B1B1B1"
|
android:textColor="#B1B1B1"
|
||||||
|
android:layout_marginBottom="3dp"
|
||||||
android:textSize="16dp"
|
android:textSize="16dp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
@ -56,6 +59,7 @@
|
|||||||
</HorizontalScrollView>
|
</HorizontalScrollView>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:id="@+id/ijiasdw"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
|
Loading…
Reference in New Issue
Block a user