From 31de4dc51690ae48a0dc47d2b5f5f33b3b734f8f Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Wed, 17 Aug 2022 16:14:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=91=A8=E6=98=9F=E6=A6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/common/dialog/LiveTotalDialog.java | 8 +++++++- .../com/yunbao/common/event/LiveAudienceEvent.java | 3 ++- common/src/main/res/layout/view_live_total.xml | 1 + config.gradle | 4 ++-- .../com/yunbao/live/activity/LiveAudienceActivity.java | 10 +++++++++- 5 files changed, 21 insertions(+), 5 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/dialog/LiveTotalDialog.java b/common/src/main/java/com/yunbao/common/dialog/LiveTotalDialog.java index 461c09d44..b648094da 100644 --- a/common/src/main/java/com/yunbao/common/dialog/LiveTotalDialog.java +++ b/common/src/main/java/com/yunbao/common/dialog/LiveTotalDialog.java @@ -76,7 +76,13 @@ public class LiveTotalDialog extends AbsDialogFragment { dismiss(); } ); - + //周星榜 + ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.live_wks_layout), () -> { + Bus.get().post(new LiveAudienceEvent() + .setType(LiveAudienceEvent.LiveAudienceType.LIVEWKS)); + dismiss(); + } + ); } @Override diff --git a/common/src/main/java/com/yunbao/common/event/LiveAudienceEvent.java b/common/src/main/java/com/yunbao/common/event/LiveAudienceEvent.java index 4513540b7..5ec9b4185 100644 --- a/common/src/main/java/com/yunbao/common/event/LiveAudienceEvent.java +++ b/common/src/main/java/com/yunbao/common/event/LiveAudienceEvent.java @@ -31,7 +31,8 @@ public class LiveAudienceEvent extends BaseModel { GIFTPOPUP(3, "礼物弹窗"), CURRENTACTIVITY(4, "当前活动"), FANCLUB(5,"粉絲團"), - GUARD(6,"守護"); + GUARD(6,"守護"), + LIVEWKS(7,"周星榜"); private int type; diff --git a/common/src/main/res/layout/view_live_total.xml b/common/src/main/res/layout/view_live_total.xml index 2adc652ca..7587258b2 100644 --- a/common/src/main/res/layout/view_live_total.xml +++ b/common/src/main/res/layout/view_live_total.xml @@ -103,6 +103,7 @@