Merge branch 'master' into dev_proguard

This commit is contained in:
zlzw 2023-06-12 10:50:27 +08:00
commit 29ddc54303
10 changed files with 67 additions and 18 deletions

View File

@ -67,5 +67,6 @@
<WebView <WebView
android:id="@+id/webView" android:id="@+id/webView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_marginBottom="15dp"
android:layout_height="match_parent" /> android:layout_height="match_parent" />
</LinearLayout> </LinearLayout>

View File

@ -4,7 +4,7 @@ ext {
buildToolsVersion: "29.0.2", buildToolsVersion: "29.0.2",
minSdkVersion : 21, minSdkVersion : 21,
targetSdkVersion : 31, targetSdkVersion : 31,
versionCode : 423, versionCode : 428,
versionName : "6.5.2" versionName : "6.5.2"
] ]
manifestPlaceholders = [ manifestPlaceholders = [
@ -26,7 +26,7 @@ ext {
// true表示谷歌支付 false // true表示谷歌支付 false
isGooglePlay : false, isGooglePlay : false,
// //
isUploadLog : false isUploadLog : true
] ]
} }
//7664 1 //7664 1

View File

@ -861,8 +861,7 @@ public class LiveAudienceActivity extends LiveActivity {
if (TextUtils.equals(htmlUrl, "recharge")) { if (TextUtils.equals(htmlUrl, "recharge")) {
RouteUtil.forwardMyCoin(mContext); RouteUtil.forwardMyCoin(mContext);
} else if (TextUtils.equals(htmlUrl, "to_me_information")) { } else if (TextUtils.equals(htmlUrl, "to_me_information")) {
onBackPressed(); RouteUtil.forwardEditProfileActivity();
Constants.isShowPage = 3;
} else { } else {
if (!screen) { if (!screen) {
ZhuangBanActivity.forward(mContext, htmlUrl, false); ZhuangBanActivity.forward(mContext, htmlUrl, false);

View File

@ -1467,14 +1467,29 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
@Override @Override
public void onSendGift(LiveReceiveGiftBean bean, SendBlindGiftEvent event) { public void onSendGift(LiveReceiveGiftBean bean, SendBlindGiftEvent event) {
if (event!=null){ if (event != null) {
//插入盲盒礼物消息 LiveChatBean liveChatBean = null;
bean.getLiveChatBean().setType(LiveChatBean.BLIND_BOX); if (!TextUtils.isEmpty(event.isBlindBoxStatus()) && TextUtils.equals(event.isBlindBoxStatus(), "true")) {
bean.getLiveChatBean().setContent(event.getGiftMsg()); if (!TextUtils.isEmpty(event.getDressName()) && !TextUtils.isEmpty(event.getDressMsg())) {
bean.getLiveChatBean().setGiftName(event.getGiftname()); liveChatBean = new LiveChatBean();
bean.getLiveChatBean().setUserNiceName(event.getUserNiceName()); liveChatBean.setUserNiceName(event.getUserNiceName());
liveChatBean.setType(LiveChatBean.BLIND_BOX);
liveChatBean.setGiftName(event.getDressName());
liveChatBean.setContent(event.getDressMsg());
}
//插入盲盒礼物消息
bean.getLiveChatBean().setType(LiveChatBean.BLIND_BOX);
bean.getLiveChatBean().setContent(event.getGiftMsg());
bean.getLiveChatBean().setGiftName(event.getGiftname());
bean.getLiveChatBean().setUserNiceName(event.getUserNiceName());
}
if (mLiveRoomViewHolder != null) { if (mLiveRoomViewHolder != null) {
if (bean.getmLiveUId().equals(bean.getRoomnum())) { if (bean.getmLiveUId().equals(bean.getRoomnum())) {
if (liveChatBean != null) {
mLiveRoomViewHolder.insertChat(liveChatBean, 1);
}
mLiveRoomViewHolder.insertChat(bean.getLiveChatBean(), 1); mLiveRoomViewHolder.insertChat(bean.getLiveChatBean(), 1);
} }
mLiveRoomViewHolder.showGiftMessage(bean, false); mLiveRoomViewHolder.showGiftMessage(bean, false);

View File

@ -154,7 +154,7 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
DialogInterface.OnDismissListener onDismissListener; DialogInterface.OnDismissListener onDismissListener;
DialogInterface.OnShowListener onShowListener; DialogInterface.OnShowListener onShowListener;
private SVGAImageView blindSvga, blindBoxOpen; private SVGAImageView blindSvga, blindBoxOpen;
private View close_view;
@Override @Override
protected int getLayoutId() { protected int getLayoutId() {
return R.layout.dialog_live_gift_wrap; return R.layout.dialog_live_gift_wrap;
@ -316,6 +316,7 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
description = mRootView.findViewById(R.id.description); description = mRootView.findViewById(R.id.description);
mVipGoldTitle = mRootView.findViewById(R.id.vipGoldTitle); mVipGoldTitle = mRootView.findViewById(R.id.vipGoldTitle);
mVipGoldDesc = mRootView.findViewById(R.id.vipGoldDesc); mVipGoldDesc = mRootView.findViewById(R.id.vipGoldDesc);
close_view = mRootView.findViewById(R.id.close_view);
mVipGold.setOnClickListener(this); mVipGold.setOnClickListener(this);
mGiftPackage = mRootView.findViewById(R.id.btn_gift_package); mGiftPackage = mRootView.findViewById(R.id.btn_gift_package);
blindNumber = mRootView.findViewById(R.id.blind_number); blindNumber = mRootView.findViewById(R.id.blind_number);
@ -323,6 +324,12 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
textBlindGiftName = mRootView.findViewById(R.id.text_blind_gift_name); textBlindGiftName = mRootView.findViewById(R.id.text_blind_gift_name);
mGiftPackage.setOnClickListener(this); mGiftPackage.setOnClickListener(this);
mRootView.findViewById(R.id.live_gift_download_all).setOnClickListener(this); mRootView.findViewById(R.id.live_gift_download_all).setOnClickListener(this);
close_view.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
dismiss();
}
});
mHandler = new Handler() { mHandler = new Handler() {
@Override @Override
public void handleMessage(Message msg) { public void handleMessage(Message msg) {
@ -1258,3 +1265,4 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
}; };
} }

View File

@ -335,7 +335,7 @@ public class LiveGiftAnimPresenter {
public void onClick(View view) { public void onClick(View view) {
//切换直播间 //切换直播间
if (TextUtils.equals(mIvLook.getText().toString(),mContext.getString(R.string.participate_in))) { if (TextUtils.equals(mIvLook.getText().toString(), mContext.getString(R.string.participate_in))) {
new Handler().postDelayed(new Runnable() { new Handler().postDelayed(new Runnable() {
@Override @Override
public void run() { public void run() {
@ -882,6 +882,10 @@ public class LiveGiftAnimPresenter {
params.topMargin = DpUtil.dp2px(y); params.topMargin = DpUtil.dp2px(y);
mGifGiftTipGroupAllServer.setLayoutParams(params); mGifGiftTipGroupAllServer.setLayoutParams(params);
} }
bgAllServer.setBackgroundResource(R.drawable.bg_live_gift_tip);
mIvLook.setBackgroundResource(R.drawable.bg_all_server_icon);
superNotice.setBackgroundResource(R.mipmap.super_notice);
mIvLook.setText(R.string.live_onlookers);
mAncherName = mTempGifGiftBean.getAncherName(); mAncherName = mTempGifGiftBean.getAncherName();
mGifGiftTipAllServer.setSelected(false); mGifGiftTipAllServer.setSelected(false);
mGifGiftTipGroupAllServer.setAlpha(1f); mGifGiftTipGroupAllServer.setAlpha(1f);

View File

@ -341,7 +341,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
private TextView mPkRankText; private TextView mPkRankText;
private ImageView mPkRankTopIcon; private ImageView mPkRankTopIcon;
private TextView mRedVal, mBlueVal; private TextView mRedVal, mBlueVal;
private String pkUid = ""; public String pkUid = "";
//接口整合新加参数 //接口整合新加参数
private GuardUserModel guardUserModel; private GuardUserModel guardUserModel;
@ -1486,7 +1486,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
msgLayout.setVisibility(View.VISIBLE); msgLayout.setVisibility(View.VISIBLE);
} }
AppManager.runDebugCode(() -> msgLayout.setVisibility(View.GONE)); AppManager.runDebugCode(() -> msgLayout.setVisibility(View.GONE));
voteManager.hide();
if (d_pk_view != null) { if (d_pk_view != null) {
d_pk_view.setVisibility(View.GONE); d_pk_view.setVisibility(View.GONE);
} }
@ -1507,6 +1506,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
public void resetView() { public void resetView() {
resetViewGone(); resetViewGone();
visibility = false; visibility = false;
pkUidTmp = "";
mBannerList1.clear(); mBannerList1.clear();
mBannerList2.clear(); mBannerList2.clear();
mBannerList3.clear(); mBannerList3.clear();
@ -2092,7 +2092,19 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
initPkRank(null); initPkRank(null);
} }
private String pkUidTmp = "";
public void initPkRank(String isLadders) { public void initPkRank(String isLadders) {
//PK状态下pkuid不能为空
if (pkUidTmp.equals(pkUid) && !StringUtil.isEmpty(pkUid)) {
return;
}
//非PK状态下第一次调用通过
if (pkRankLayout.getTag() != null && pkRankLayout.getTag().equals(mLiveUid) && StringUtil.isEmpty(pkUid)) {
return;
}
pkRankLayout.setTag(mLiveUid);
pkUidTmp = pkUid;
pkRankLayout.setVisibility(View.GONE); pkRankLayout.setVisibility(View.GONE);
new LoadDian9TuUtil().loadDian9TuAssets2(mContext, liveRankPk2, "rectangle_new.png", 1); new LoadDian9TuUtil().loadDian9TuAssets2(mContext, liveRankPk2, "rectangle_new.png", 1);
mRedVal.setVisibility(View.GONE); mRedVal.setVisibility(View.GONE);
@ -2138,6 +2150,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
liveRankPk2.setVisibility(View.VISIBLE); liveRankPk2.setVisibility(View.VISIBLE);
mPkRankText.setText(bean.getName()); mPkRankText.setText(bean.getName());
ImgLoader.display(mContext, bean.getImg(), mPkRankIcon); ImgLoader.display(mContext, bean.getImg(), mPkRankIcon);
pkUidTmp = "";
if (StringUtil.isEmpty(bean.getPkTopImgUrl())) { if (StringUtil.isEmpty(bean.getPkTopImgUrl())) {
return; return;
} }
@ -2160,6 +2173,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
@Override @Override
public void onError(String error) { public void onError(String error) {
ToastUtil.show(R.string.net_error); ToastUtil.show(R.string.net_error);
pkUidTmp = "";
} }
}); });
@ -2478,9 +2492,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
*/ */
public void setRoomNum(String roomNum) { public void setRoomNum(String roomNum) {
if (mID != null) { if (mID != null) {
if (roomNum.contains("ID")){ if (roomNum.contains("ID")) {
mID.setText(roomNum); mID.setText(roomNum);
}else { } else {
mID.setText(String.format("ID:%s", roomNum)); mID.setText(String.format("ID:%s", roomNum));
} }
@ -3684,9 +3698,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
if (!StringUtil.isEmpty(goodNumber) && !goodNumber.equals("0")) { if (!StringUtil.isEmpty(goodNumber) && !goodNumber.equals("0")) {
mAnchorLayout.setBackgroundResource(R.drawable.bg_live_anchor_goodnum); mAnchorLayout.setBackgroundResource(R.drawable.bg_live_anchor_goodnum);
if (goodNumber.contains("ID")){ if (goodNumber.contains("ID")) {
mID.setText(goodNumber); mID.setText(goodNumber);
}else { } else {
mID.setText(String.format("ID:%s", goodNumber)); mID.setText(String.format("ID:%s", goodNumber));
} }
mGoodNumberIcon.setVisibility(View.VISIBLE); mGoodNumberIcon.setVisibility(View.VISIBLE);
@ -4650,6 +4664,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
mHandler.removeMessages(WHAT_PK_TIME); mHandler.removeMessages(WHAT_PK_TIME);
} }
isShowGif = false; isShowGif = false;
if (voteManager != null) {
voteManager.hide();
}
} }
/** /**

View File

@ -594,6 +594,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
} else if (!pkInfo.getString("end_pk_time").equals("0")) { } else if (!pkInfo.getString("end_pk_time").equals("0")) {
if (mLiveRoomViewHolder != null) { if (mLiveRoomViewHolder != null) {
mLiveRoomViewHolder.pkHandler = true; mLiveRoomViewHolder.pkHandler = true;
mLiveRoomViewHolder.pkUid=pkUid;
mLiveRoomViewHolder.initPkRank(null); mLiveRoomViewHolder.initPkRank(null);
} }
if (mLivePlayViewHolder != null) { if (mLivePlayViewHolder != null) {

View File

@ -6,6 +6,7 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
android:id="@+id/close_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="5dp" android:layout_marginBottom="5dp"
@ -43,6 +44,7 @@
android:id="@+id/btn_luck_gift_tip" android:id="@+id/btn_luck_gift_tip"
android:layout_width="102dp" android:layout_width="102dp"
android:layout_height="31dp" android:layout_height="31dp"
android:clickable="true"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_marginTop="70dp" android:layout_marginTop="70dp"
android:layout_marginBottom="5dp" android:layout_marginBottom="5dp"
@ -88,6 +90,7 @@
<FrameLayout <FrameLayout
android:id="@+id/blind_box" android:id="@+id/blind_box"
android:clickable="true"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"

View File

@ -102,6 +102,7 @@ public class ZhuangBanActivity extends AbsActivity {
mWebView = new WebView(mContext); mWebView = new WebView(mContext);
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
params.topMargin = DpUtil.dp2px(1); params.topMargin = DpUtil.dp2px(1);
params.bottomMargin = DpUtil.dp2px(15);
mWebView.setLayoutParams(params); mWebView.setLayoutParams(params);
mWebView.setOverScrollMode(View.OVER_SCROLL_NEVER); mWebView.setOverScrollMode(View.OVER_SCROLL_NEVER);
rootView.addView(mWebView); rootView.addView(mWebView);