From b52a157ed2a10b669cdd5edf42514f8fdb493d9c Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Wed, 17 Aug 2022 17:11:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=89=B9=E6=95=88=E5=BC=80?= =?UTF-8?q?=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/common/bean/IMLoginModel.java | 3 +- .../common/dialog/EffectsSettingsDialog.java | 71 ++++++++++++++++++ .../yunbao/common/dialog/LiveTotalDialog.java | 13 +++- .../common/event/LiveAudienceEvent.java | 13 ++-- .../yunbao/common/manager/IMLoginManager.java | 18 ++++- .../common/views/FunGamesViewHolder.java | 2 +- .../main/res/layout/view_effects_settings.xml | 41 ++++++++++ .../src/main/res/layout/view_live_total.xml | 1 + .../res/mipmap-xxhdpi/special_icon_off.png | Bin 0 -> 8170 bytes .../res/mipmap-xxhdpi/special_icon_on.png | Bin 0 -> 7660 bytes common/src/main/res/values/strings.xml | 1 + .../live/activity/LiveAudienceActivity.java | 17 +++-- .../live/views/LiveAudienceViewHolder.java | 4 +- 13 files changed, 162 insertions(+), 22 deletions(-) create mode 100644 common/src/main/java/com/yunbao/common/dialog/EffectsSettingsDialog.java create mode 100644 common/src/main/res/layout/view_effects_settings.xml create mode 100644 common/src/main/res/mipmap-xxhdpi/special_icon_off.png create mode 100644 common/src/main/res/mipmap-xxhdpi/special_icon_on.png diff --git a/common/src/main/java/com/yunbao/common/bean/IMLoginModel.java b/common/src/main/java/com/yunbao/common/bean/IMLoginModel.java index 5174659b3..48ae294b0 100644 --- a/common/src/main/java/com/yunbao/common/bean/IMLoginModel.java +++ b/common/src/main/java/com/yunbao/common/bean/IMLoginModel.java @@ -206,8 +206,9 @@ public class IMLoginModel extends BaseModel { private List> list; @SerializedName("slide") private List slide; + //礼物特效开关 @SerializedName("gift_effect") - private boolean giftEffect =false; + private boolean giftEffect = false; public boolean isGiftEffect() { return giftEffect; diff --git a/common/src/main/java/com/yunbao/common/dialog/EffectsSettingsDialog.java b/common/src/main/java/com/yunbao/common/dialog/EffectsSettingsDialog.java new file mode 100644 index 000000000..f882aa612 --- /dev/null +++ b/common/src/main/java/com/yunbao/common/dialog/EffectsSettingsDialog.java @@ -0,0 +1,71 @@ +package com.yunbao.common.dialog; + +import android.os.Bundle; +import android.view.Gravity; +import android.view.Window; +import android.view.WindowManager; +import android.widget.ImageView; + +import com.yunbao.common.R; +import com.yunbao.common.bean.IMLoginModel; +import com.yunbao.common.glide.ImgLoader; +import com.yunbao.common.manager.IMLoginManager; +import com.yunbao.common.views.weight.ViewClicksAntiShake; + +/** + * 特效设置页面 + */ +public class EffectsSettingsDialog extends AbsDialogFragment { + private ImageView specialSwitch; + private boolean giftEffect; + + @Override + protected int getLayoutId() { + return R.layout.view_effects_settings; + } + + @Override + protected int getDialogStyle() { + return R.style.dialog2; + } + + @Override + protected boolean canCancel() { + return true; + } + + @Override + public void onActivityCreated(Bundle savedInstanceState) { + super.onActivityCreated(savedInstanceState); + IMLoginModel userInfo = IMLoginManager.get(getContext()).getUserInfo(); + specialSwitch = (ImageView) findViewById(R.id.special_switch); + giftEffect = userInfo.isGiftEffect(); + if (giftEffect) { + ImgLoader.display(getContext(), R.mipmap.special_icon_off, specialSwitch); + } else { + ImgLoader.display(getContext(), R.mipmap.special_icon_on, specialSwitch); + } + //礼物特效开关 + ViewClicksAntiShake.clicksAntiShake(specialSwitch, () -> { + giftEffect = !giftEffect; + if (giftEffect) { + ImgLoader.display(getContext(), R.mipmap.special_icon_off, specialSwitch); + } else { + ImgLoader.display(getContext(), R.mipmap.special_icon_on, specialSwitch); + } + //更新特效开关 + IMLoginManager.get(getContext()).upDataUserInfo(userInfo.setGiftEffect(giftEffect)); + } + ); + } + + @Override + protected void setWindowAttributes(Window window) { + window.setWindowAnimations(R.style.bottomToTopAnim); + WindowManager.LayoutParams params = window.getAttributes(); + params.width = WindowManager.LayoutParams.MATCH_PARENT; + params.height = WindowManager.LayoutParams.WRAP_CONTENT; + params.gravity = Gravity.BOTTOM; + window.setAttributes(params); + } +} 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 d184ba39b..e8a4a4d0d 100644 --- a/common/src/main/java/com/yunbao/common/dialog/LiveTotalDialog.java +++ b/common/src/main/java/com/yunbao/common/dialog/LiveTotalDialog.java @@ -65,7 +65,7 @@ public class LiveTotalDialog extends AbsDialogFragment { //粉丝团 ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.fan_club), () -> { Bus.get().post(new LiveAudienceEvent() - .setType(LiveAudienceEvent.LiveAudienceType.FANCLUB)); + .setType(LiveAudienceEvent.LiveAudienceType.FAN_CLUB)); dismiss(); } ); @@ -79,7 +79,7 @@ public class LiveTotalDialog extends AbsDialogFragment { //周星榜 ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.live_wks_layout), () -> { Bus.get().post(new LiveAudienceEvent() - .setType(LiveAudienceEvent.LiveAudienceType.LIVEWKS)); + .setType(LiveAudienceEvent.LiveAudienceType.LIVE_WKS)); dismiss(); } ); @@ -93,7 +93,14 @@ public class LiveTotalDialog extends AbsDialogFragment { //连麦 ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.live_link_mic), () -> { Bus.get().post(new LiveAudienceEvent() - .setType(LiveAudienceEvent.LiveAudienceType.LIANMAI)); + .setType(LiveAudienceEvent.LiveAudienceType.LIAN_MAI)); + dismiss(); + } + ); + //特效设置 + ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.effects_settings_layout), () -> { + Bus.get().post(new LiveAudienceEvent() + .setType(LiveAudienceEvent.LiveAudienceType.EFFECTS_SETTINGS)); dismiss(); } ); 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 e4276d3fa..1b6e747d8 100644 --- a/common/src/main/java/com/yunbao/common/event/LiveAudienceEvent.java +++ b/common/src/main/java/com/yunbao/common/event/LiveAudienceEvent.java @@ -27,14 +27,15 @@ public class LiveAudienceEvent extends BaseModel { public enum LiveAudienceType { SIDEBAR(1, "侧边栏"), - BOTTOMCOLLECTION(2, "底部合集"), - GIFTPOPUP(3, "礼物弹窗"), - CURRENTACTIVITY(4, "当前活动"), - FANCLUB(5, "粉絲團"), + BOTTOM_COLLECTION(2, "底部合集"), + GIFT_POPUP(3, "礼物弹窗"), + CURRENT_ACTIVITY(4, "当前活动"), + FAN_CLUB(5, "粉絲團"), GUARD(6, "守護"), - LIVEWKS(7, "周星榜"), + LIVE_WKS(7, "周星榜"), NOBLE(8, "贵族"), - LIANMAI(9, "连麦"); + LIAN_MAI(9, "连麦"), + EFFECTS_SETTINGS(10, "特效設置"); private int type; diff --git a/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java b/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java index c857271d8..019a2ba8d 100644 --- a/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java +++ b/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java @@ -18,9 +18,6 @@ import com.yunbao.common.utils.SpUtil; import org.greenrobot.eventbus.EventBus; -import io.rong.imkit.IMCenter; -import io.rong.imlib.model.Conversation; - /** * 登录者信息管理 */ @@ -132,6 +129,21 @@ public class IMLoginManager extends BaseCacheManager { SpUtil.getInstance().setStringValue(SpUtil.USER_INFO, new Gson().toJson(userInfo)); } + /** + * 调用User.getBaseInfos接口时更新用户本地数据 + * + * @param model + */ + public void upDataUserInfo(@NonNull IMLoginModel model) { + userInfo = model; + if (!TextUtils.isEmpty(token)) { + userInfo.setToken(token); + } + put(KEY_USER_INFO, new Gson().toJson(userInfo)); + //兼容老模块(之后要把用户维护的类更换掉) + SpUtil.getInstance().setStringValue(SpUtil.USER_INFO, new Gson().toJson(userInfo)); + } + /** * 重新请求管理员身份信息 */ diff --git a/common/src/main/java/com/yunbao/common/views/FunGamesViewHolder.java b/common/src/main/java/com/yunbao/common/views/FunGamesViewHolder.java index 3b73a5a04..2142d9f11 100644 --- a/common/src/main/java/com/yunbao/common/views/FunGamesViewHolder.java +++ b/common/src/main/java/com/yunbao/common/views/FunGamesViewHolder.java @@ -35,7 +35,7 @@ public class FunGamesViewHolder extends RecyclerView.ViewHolder { funGameName.setText(model.getActiveName()); ViewClicksAntiShake.clicksAntiShake(itemView, () -> { Bus.get().post(new LiveAudienceEvent() - .setType(LiveAudienceEvent.LiveAudienceType.CURRENTACTIVITY) + .setType(LiveAudienceEvent.LiveAudienceType.CURRENT_ACTIVITY) .setModel(model)); }); } diff --git a/common/src/main/res/layout/view_effects_settings.xml b/common/src/main/res/layout/view_effects_settings.xml new file mode 100644 index 000000000..381d0e138 --- /dev/null +++ b/common/src/main/res/layout/view_effects_settings.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/common/src/main/res/layout/view_live_total.xml b/common/src/main/res/layout/view_live_total.xml index ea0bce7ae..d03efb5ec 100644 --- a/common/src/main/res/layout/view_live_total.xml +++ b/common/src/main/res/layout/view_live_total.xml @@ -186,6 +186,7 @@ Py9q)9|URCr$Poe6XlRl3J-?cJSD*u)@S=0csD2s#y2?WC; zAfYgUghYp7m{HNu!5Mu52N;=Qe2yCeI;^fZ@KE8Y>{|jM>F(O@ednu6C6%VTQ=N36 zJLx_rBy`=nU3KrT|KD<#qEHOI2qDzcrAq~$&*${{Xa~#E4oT9S3`03+nsR6wVi|@o zgkT0^nxQB}6G9l8#tcF%4ga^^F2i=#*Zk9aDL3ZY<0-BxSNcO48iGa z)=bl+#+rs2Q50!}F-im|!@ZtRz=Q)+U4iKjWw`fO&6mZC5V^!KsDz@}OB|cq0g3-B%NNpdZtuY{Tgn)*Az%m6xpI8Z%dk{TM^#>4}*$uPvO{1ju>wRwT;u zr4AV5b_fy9Y#e_8tkqeotmUr? zkP8+pXy)~jUzs3UmC%F`-qSQpYnsd`idH2WHZQnq*Dg(OzPUq-X3ef|=5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KpF~bn0SOLVvh2UHC<0*b0z~uFsu?gt-+)104H7OrYxv)UJ^>*RUHILg=W&fquCfis*k&R~<;} z1&kayvYDn)T~!serzn(YHRYA6Xo6?HQ>mEMe=#cI3kIQo$AcnPf>^1F{wCTV#`5D; z%)Y6N{xAlEEnHI_DRngbL;94e;$ttoAfBzhUF)vIH3iaoTZ0FuH0OEPpOUm8glZ1v zI@oOo0{4n*!0ll3rn=jj~2yVjYQzq%wvBBt=mYLim!VQ6+-FUPw+(I)63&!f^U6DuE1i0|04p zadBfsVG;<@To`K!2r(`~Z~{Wa1wVvP93hCMsPeo^z?J|tGg3X3NpC~t%;>rNZyiX} zSF8+N3{{K*7~$G9nkE_y-)R~x!3Iw7H^!8Y=P4h?w6C<(T^h-elyKmxN!geIGTfUp zhB9?>7)eTG;jz>lS4Jb0gj7|b5)<|17Zk^F1b!n_xibvB=l^*e$5*_U6hf;7LAc`F z>aN}4aFB}^D@zH2qr8q{L`YNEgbusiWuVfyTeognN=iz_9L(zKjz>% literal 0 HcmV?d00001 diff --git a/common/src/main/res/mipmap-xxhdpi/special_icon_on.png b/common/src/main/res/mipmap-xxhdpi/special_icon_on.png new file mode 100644 index 0000000000000000000000000000000000000000..b172aa2676dc8e7ac3fd06b16411c80d049f7949 GIT binary patch literal 7660 zcmVPy7rb$FWRCr$Poe7u})wRd}x2n5mdiI3@28Ko1WK&Slh#}yDzKATM0v#(L{@01Ux_$8+)k-vuePy}Z(j&U3q z3;N?2$^o@d!lnZ%S-Gk1OZJ-;_vy+{_q$m>#stt?8L&!WSOwr?6?n%#16vB!hPmeJ z7$Es__`~fup9ALs_!@vwq_J|Xpq=|Oeb6$`OhL2@p&fbBDe^Q8x0xyUy8^yucnUZQg3sTINtnRhEmZC9I z$<5L{RpZZ$A<8+HDGblTi)Sh?z^-CH17mqT0%UM8Mu6i+aLngGO;0sIHZbNBL~~xL zz@@Z_zj%LFyyP|dOdv`a>0Qyk8v(U~^-!l8VGcaQ6g*Tl18?`lb15p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Z5Zm!TWIe`p2~3|$Jt?|lmH9d?~K?X4)Uq5+uzb2WV7O}Ip3xDgy*&1Wrh0a8L{ z)SL;eXx?nVuna;j4zq$%z@<;_H69W#;j{wNN^^G`Ez&1+7-ciIp?sjSPbg2xN|<3o zVxwsmK*s+^Lop9ksCe|aYtf$1=VK?Yq629ZDzpe=Im3K#%;vyxb_7nBrl+8kAjy8C z7^N{Be{9s233v@=-0B~M8BSxGbnTD;%#_d!A^of{?BN_QC>|^veI1tC$-7W#dK5@w zrNYe^9|JB1$5h5}GUv$3&9nog<%2eK)6;q0W-Thsx4dpN=hB2rZE5UVCIiz9UMhzy z85k10ZraoEv=xTW!0|fs;Q3J%SjOf+kCGM&HGBCw21uj0{0&rux^M<(n8bjSz%dpK zgXzQwJJqrSrB#}Ap0@=)X3W-^Vf2b@WUg-T11MnV{_#n6v4G%7$N2O7b}dtU&Jw0$+LF#T7hZhAa#RNHmZS2281|6fB{{cV+R;^C_o!$pmlaWi`W0000ZW6 literal 0 HcmV?d00001 diff --git a/common/src/main/res/values/strings.xml b/common/src/main/res/values/strings.xml index ffdd4c35f..7357524e8 100644 --- a/common/src/main/res/values/strings.xml +++ b/common/src/main/res/values/strings.xml @@ -878,4 +878,5 @@ 活動中心 基础工具 特效設置 + 屏蔽礼物特效 diff --git a/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java b/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java index 398ac2b8c..4dfeec4ae 100644 --- a/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java @@ -50,6 +50,7 @@ import com.yunbao.common.bean.UserBean; import com.yunbao.common.custom.CommonRefreshView; import com.yunbao.common.custom.ItemDecoration; import com.yunbao.common.custom.MyViewPager; +import com.yunbao.common.dialog.EffectsSettingsDialog; import com.yunbao.common.dialog.LiveChargeDialogFragment; import com.yunbao.common.dialog.LiveTotalDialog; import com.yunbao.common.event.LiveAudienceEvent; @@ -1401,11 +1402,11 @@ public class LiveAudienceActivity extends LiveActivity { //从右边打开侧边栏 drawerLayout.openDrawer(GravityCompat.END); break; - case BOTTOMCOLLECTION: + case BOTTOM_COLLECTION: LiveTotalDialog liveTotalDialog = new LiveTotalDialog(); liveTotalDialog.show(getSupportFragmentManager(), "LiveTotalDialog"); break; - case GIFTPOPUP: + case GIFT_POPUP: if (TextUtils.isEmpty(mLiveUid) || TextUtils.isEmpty(mStream)) { return; } @@ -1416,7 +1417,7 @@ public class LiveAudienceActivity extends LiveActivity { liveGiftDialogFragment.setArguments(bundle); liveGiftDialogFragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveGiftDialogFragment"); break; - case CURRENTACTIVITY: + case CURRENT_ACTIVITY: bundle.putString("url", event.getModel().activityUrl(mContext, liveBean.getUid())); int show = TextUtils.isEmpty(event.getModel().getShowType()) ? 0 : Integer.parseInt(event.getModel().getShowType()); @@ -1425,7 +1426,7 @@ public class LiveAudienceActivity extends LiveActivity { liveHDDialogFragment.setArguments(bundle); liveHDDialogFragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveHDDialogFragment"); break; - case FANCLUB: + case FAN_CLUB: LiveFansFragment liveFansFragment = new LiveFansFragment(); //粉絲團粉絲團 @@ -1452,7 +1453,7 @@ public class LiveAudienceActivity extends LiveActivity { liveGuardDialogFragment.setArguments(bundle); liveGuardDialogFragment.show(getSupportFragmentManager(), "LiveGuardDialogFragment"); break; - case LIVEWKS://周星榜 + case LIVE_WKS://周星榜 String weeklyStarUrl = CommonAppConfig.HOST + "/h5/activity/weekStar/index.html?&uid=" + userInfo.getId() + "&token=" + userInfo.getToken() + "&anchorUid=" + mLiveUid; @@ -1466,7 +1467,7 @@ public class LiveAudienceActivity extends LiveActivity { + "&uid=" + userInfo.getId(); ZhuangBanActivity.forward(mContext, nobleUrl, false); break; - case LIANMAI: + case LIAN_MAI: //获取房间连麦状态 HttpClient.getInstance().get("live.getDrLm", "live.getDrLm") .params("uid", mLiveUid, true) @@ -1488,6 +1489,10 @@ public class LiveAudienceActivity extends LiveActivity { } }); break; + case EFFECTS_SETTINGS: + EffectsSettingsDialog effectsSettingsDialog = new EffectsSettingsDialog(); + effectsSettingsDialog.show(getSupportFragmentManager(), "EffectsSettingsDialog"); + break; } diff --git a/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java index 6df5ce412..f3a9bee2c 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java @@ -300,7 +300,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder { @Override public void onViewClicks() { Bus.get().post(new LiveAudienceEvent() - .setType(LiveAudienceEvent.LiveAudienceType.BOTTOMCOLLECTION)); + .setType(LiveAudienceEvent.LiveAudienceType.BOTTOM_COLLECTION)); } }); @@ -311,7 +311,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder { @Override public void onViewClicks() { Bus.get().post(new LiveAudienceEvent() - .setType(LiveAudienceEvent.LiveAudienceType.GIFTPOPUP)); + .setType(LiveAudienceEvent.LiveAudienceType.GIFT_POPUP)); } }); }