From 43ac37b9e929e08deaca115d285342bf15cd80d9 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 1 Sep 2022 13:28:30 +0800 Subject: [PATCH] =?UTF-8?q?add:=E7=9B=B4=E6=92=AD=E9=97=B4=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E5=90=88=E9=9B=86=E6=96=B0=E5=A2=9E=E4=B8=BE=E6=8A=A5?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/res/layout/view_live_total.xml | 21 ++++++++++++++++++ .../mipmap-xxhdpi/live_more_icon_report.png | Bin 0 -> 5374 bytes .../live/activity/LiveAudienceActivity.java | 4 ++++ .../yunbao/live/dialog/LiveTotalDialog.java | 16 +++++++++++-- .../yunbao/live/event/LiveAudienceEvent.java | 3 ++- 5 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 common/src/main/res/mipmap-xxhdpi/live_more_icon_report.png diff --git a/common/src/main/res/layout/view_live_total.xml b/common/src/main/res/layout/view_live_total.xml index 5408563cc..58178fddf 100644 --- a/common/src/main/res/layout/view_live_total.xml +++ b/common/src/main/res/layout/view_live_total.xml @@ -207,6 +207,27 @@ android:textColor="#FF9A9A9A" android:textSize="12sp" /> + + + + + + diff --git a/common/src/main/res/mipmap-xxhdpi/live_more_icon_report.png b/common/src/main/res/mipmap-xxhdpi/live_more_icon_report.png new file mode 100644 index 0000000000000000000000000000000000000000..914b4cfae4d19ec56017a4f6b961c28d358418a6 GIT binary patch literal 5374 zcmVPx}xJg7oRCr$PT?tT>SGGQEA`Jwvl^I-!TXY5!@9F%F5w7a*fZJxoT$ zk}=UJhHVrO;W;A=(ZMZoqeux>P$HJw)3~89ZgF?yg@7y%0R;@3y}kN;-FbA=*nfB5 zzx!`qpQ^61_ndRjJ=cb;)UPFA)33R+GDlW``}rWS0&E4ipG%;hvuB;b zR)G7t1o}C9)){OCxSva)pR?B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%vA=MV299^UhZ3oZa60L5)4n5_U4GnX&zU=j_`9{@Iqpe*$xR)8%P zIgb6d0?biRmim|#U`s`gW52Bca}<=NK4t~jQjz1>Z!5qY1!bv^Spl|G{ + ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.activity_center), () -> { Bus.get().post(new LiveAudienceEvent() .setType(LiveAudienceEvent.LiveAudienceType.ACTIVITY_CENTER)); dismiss(); }); + //举报 + ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.report_layout), () -> { + Bus.get().post(new LiveAudienceEvent() + .setBean(anchorBean) + .setType(LiveAudienceEvent.LiveAudienceType.REPORT)); + dismiss(); + }); } @Override diff --git a/live/src/main/java/com/yunbao/live/event/LiveAudienceEvent.java b/live/src/main/java/com/yunbao/live/event/LiveAudienceEvent.java index 0626a282d..abd971209 100644 --- a/live/src/main/java/com/yunbao/live/event/LiveAudienceEvent.java +++ b/live/src/main/java/com/yunbao/live/event/LiveAudienceEvent.java @@ -113,7 +113,8 @@ public class LiveAudienceEvent extends BaseModel { OPEN_PARAMETERS(12, "开放参数"), ACTIVITY_CENTER(13, "活動中心"), LIVE_ROOM_EXCEPTION(14, "直播间异常"), - REFRESH_THE_LIVEl_PAGE(15, "刷新直播页面"); + REFRESH_THE_LIVEl_PAGE(15, "刷新直播页面"), + REPORT(16, "舉報"); private int type; private String name;