update 6.5.5

This commit is contained in:
zlzw 2023-08-24 16:31:14 +08:00
parent 2b59b1b4fe
commit e1f4e8dde4
7 changed files with 59 additions and 43 deletions

View File

@ -755,6 +755,7 @@ public class LiveAudienceActivity extends LiveActivity {
if (manager != null && !StringUtil.isEmpty(is_fans)) { if (manager != null && !StringUtil.isEmpty(is_fans)) {
if (is_fans.equals("-2")) { if (is_fans.equals("-2")) {
manager.setAttention(0); manager.setAttention(0);
mLiveRoomViewHolder.setFansGroup("0");
is_fans = "2"; is_fans = "2";
} }
} }

View File

@ -132,6 +132,7 @@ public class LiveFansFragment extends AbsDialogFragment {
int num = LiveAudienceActivity.fansNum - 1; int num = LiveAudienceActivity.fansNum - 1;
LiveRoomViewHolder.setFansNum(num); LiveRoomViewHolder.setFansNum(num);
ToastUtil.show("退出成功"); ToastUtil.show("退出成功");
EventBus.getDefault().post("exitFansGroup");
dismiss(); dismiss();
} else if (TextUtils.equals(event.getMethod(), "sendFansCard")) { } else if (TextUtils.equals(event.getMethod(), "sendFansCard")) {
if (LiveRoomViewHolder.mBtnFollow != null && LiveRoomViewHolder.mBtnFollow.getVisibility() == View.VISIBLE) { if (LiveRoomViewHolder.mBtnFollow != null && LiveRoomViewHolder.mBtnFollow.getVisibility() == View.VISIBLE) {

View File

@ -785,6 +785,7 @@ public class LiveGiftPopup extends AbsDialogFragment {
if (liveGiftModel.getType() == 7) { if (liveGiftModel.getType() == 7) {
iconArrow.setVisibility(View.GONE); iconArrow.setVisibility(View.GONE);
showBlindProgress(liveGiftModel.getBlind_box_type()); showBlindProgress(liveGiftModel.getBlind_box_type());
description.setTag(liveGiftModel.getBlind_box_type());
} else { } else {
blindBox.setVisibility(View.INVISIBLE); blindBox.setVisibility(View.INVISIBLE);
mCount = DEFAULT_COUNT; mCount = DEFAULT_COUNT;

View File

@ -99,11 +99,7 @@ public class ReceiveRendPacketPopup extends CenterPopupView {
} }
userID = redPacketInfoModel.getUserId(); userID = redPacketInfoModel.getUserId();
if (redPacketInfoModel.getIsFans()) {
if (!isFans) {
ToastUtil.show(R.string.live_rad_pack_join_fans_group_tip);
}
}
} }
private Handler timeHandler = new Handler(); private Handler timeHandler = new Handler();
@ -158,6 +154,11 @@ public class ReceiveRendPacketPopup extends CenterPopupView {
redPacketTimeLayout.setVisibility(GONE); redPacketTimeLayout.setVisibility(GONE);
redPacketOpen.setVisibility(VISIBLE); redPacketOpen.setVisibility(VISIBLE);
} }
ViewClicksAntiShake.clicksAntiShake(redPacketTimeLayout, () -> {
if (!isFans && redPacketInfoModel.getIsFans()) {
ToastUtil.show(getContext().getString(R.string.live_rad_pack_join_fans_group_click_tip));
}
});
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.red_packet_open), () -> { ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.red_packet_open), () -> {
if (isSuperJackpot) { if (isSuperJackpot) {
@ -189,7 +190,7 @@ public class ReceiveRendPacketPopup extends CenterPopupView {
}); });
} else { } else {
if (!isFans && redPacketInfoModel.getIsFans()) { if (!isFans && redPacketInfoModel.getIsFans()) {
ToastUtil.show(R.string.live_rad_pack_join_fans_group_click_tip); ToastUtil.show(getContext().getString(R.string.live_rad_pack_join_fans_group_click_tip));
return; return;
} }
if (TextUtils.equals(redPacketInfoModel.getConditions(), "1") && LiveAudienceActivity.isattention == 0) { if (TextUtils.equals(redPacketInfoModel.getConditions(), "1") && LiveAudienceActivity.isattention == 0) {

View File

@ -457,6 +457,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
} }
} else if ("checkNewLetter".equals(str)) { } else if ("checkNewLetter".equals(str)) {
checkNewLetter(); checkNewLetter();
}else if("exitFansGroup".equals(str)){
setFansGroup("0");
} }
} }
@ -3475,8 +3477,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
((LiveAudienceActivity) mContext).openFansMedalOkWindow(); ((LiveAudienceActivity) mContext).openFansMedalOkWindow();
} }
if (!isAncher && bean.getGiftName().equals("粉絲牌")) { if (!isAncher && bean.getGiftName().equals("粉絲牌") && bean.getUid().equals(CommonAppConfig.getInstance().getUid())) {
LiveAudienceActivity.is_fans = "1"; LiveAudienceActivity.is_fans = "1";
setFansGroup("1");
} }
Log.i("tvss", bean.getDrpk_status() + "" + mLiveUid + "vsss" + bean.getRoomnum()); Log.i("tvss", bean.getDrpk_status() + "" + mLiveUid + "vsss" + bean.getRoomnum());
if (mLiveGiftAnimPresenter == null) { if (mLiveGiftAnimPresenter == null) {

View File

@ -675,6 +675,9 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
mLiveRoomViewHolder.showPrizePoolLevel(String.valueOf(giftPrizePoolLevel)); mLiveRoomViewHolder.showPrizePoolLevel(String.valueOf(giftPrizePoolLevel));
} }
} }
AppManager.runDebugCode(()->{
liveHandler.postDelayed(loadTimeoutRunnableGone, 1_000);
});
liveHandler.postDelayed(loadTimeoutRunnableGone, 15_000); liveHandler.postDelayed(loadTimeoutRunnableGone, 15_000);
if (TextUtils.equals(data.getEnterRoomInfo().getIsconnection(), "1")) { if (TextUtils.equals(data.getEnterRoomInfo().getIsconnection(), "1")) {
//通知心愿单位置换地方 //通知心愿单位置换地方

View File

@ -148,7 +148,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_marginStart="15dp" android:layout_marginStart="15dp"
android:layout_marginEnd="30dp"> android:layout_marginEnd="30dp">
@ -161,39 +161,45 @@
android:text="@string/there_is_no" android:text="@string/there_is_no"
android:textColor="#FDD04A" android:textColor="#FDD04A"
android:textSize="13sp" /> android:textSize="13sp" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="70dp"
android:layout_weight="1"
android:orientation="vertical"
>
<Button <Button
android:id="@+id/following_anchor" android:id="@+id/following_anchor"
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_gravity="end" android:layout_gravity="end"
android:layout_marginStart="5dp" android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/background_red_packet_select" android:background="@drawable/background_red_packet_select"
android:gravity="center" android:gravity="center"
android:text="@string/following_anchor" android:text="@string/following_anchor"
android:layout_marginBottom="5dp"
android:textColor="#FDD04A" android:textColor="#FDD04A"
android:textSize="10sp" /> android:textSize="10sp" />
<Button <Button
android:id="@+id/fans_group" android:id="@+id/fans_group"
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_gravity="end" android:layout_gravity="end"
android:layout_marginStart="5dp" android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/background_red_packet_select" android:background="@drawable/background_red_packet_select"
android:gravity="center" android:gravity="center"
android:text="@string/live_send_red_packge_fans_group" android:text="@string/live_send_red_packge_fans_group"
android:textColor="#FDD04A" android:textColor="#FDD04A"
android:textSize="10sp" /> android:textSize="10sp" />
</LinearLayout> </LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
<FrameLayout <FrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="23dp" android:layout_marginStart="23dp"
android:layout_marginTop="266dp" android:layout_marginTop="286dp"
android:layout_marginEnd="29dp"> android:layout_marginEnd="29dp">
<TextView <TextView