From eed77f989fd23b00c9067453bb1925aef7735c3b Mon Sep 17 00:00:00 2001 From: ningwenqiang Date: Tue, 15 Oct 2024 15:18:25 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=A7=82=E4=BC=97?= =?UTF-8?q?=E7=9A=84=E5=BA=95=E9=83=A8=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/res/layout/view_live_audience.xml | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/live/src/main/res/layout/view_live_audience.xml b/live/src/main/res/layout/view_live_audience.xml index dc66531af..a13a37c38 100644 --- a/live/src/main/res/layout/view_live_audience.xml +++ b/live/src/main/res/layout/view_live_audience.xml @@ -144,7 +144,7 @@ android:layout_height="0dp" android:layout_marginEnd="8dp" android:paddingStart="5dp" - android:paddingEnd="5dp" + android:paddingEnd="4.5dp" android:src="@mipmap/ic_live_new_voice" app:layout_constraintBottom_toBottomOf="@+id/et_input" app:layout_constraintEnd_toEndOf="@+id/et_input" @@ -178,13 +178,15 @@ + app:layout_constraintTop_toTopOf="@+id/btn_msg" + app:layout_constraintBottom_toBottomOf="@+id/btn_msg" /> + tools:visibility="gone" /> + app:layout_constraintTop_toTopOf="@+id/gift_image" + app:layout_constraintBottom_toBottomOf="@+id/gift_image" /> Date: Tue, 15 Oct 2024 15:20:21 +0800 Subject: [PATCH 2/7] =?UTF-8?q?Pk=E5=9B=BE=E6=A0=87=E8=AE=BE=E7=BD=AE=20ap?= =?UTF-8?q?i/public/=3Fservice=3DRanking.getAnchorRankData&app=5Ffrom=3DPD?= =?UTF-8?q?L"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/java/com/yunbao/common/http/PDLiveApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java index cf01a8fe7..0cc741ee4 100644 --- a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java +++ b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java @@ -263,7 +263,7 @@ public interface PDLiveApi { /** * PK排位赛接口 */ - @GET("/api/public/?service=Ranking.getAnchorRankData") + @GET("/api/public/?service=Ranking.getAnchorRankData&app_from=PDL") Observable> getPkRanksList(@Query("anchor_id") String anchorId, @Query("anchor_id2") String pkUid); /** From 2799991ef3151391cf2341036ba8dd1e6f14fe7d Mon Sep 17 00:00:00 2001 From: ningwenqiang Date: Tue, 15 Oct 2024 16:59:26 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E4=B8=BB=E6=92=AD=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=AE=8C=E5=BF=83=E6=84=BF=E5=8D=95=E7=9B=B4=E6=92=AD=E9=97=B4?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/fragment/LiveNewWishListFragment.java | 16 ++++++++++++++++ .../common/views/LiveNewWishListPopup.java | 13 +++++++++++++ common/src/main/res/values-en-rUS/strings.xml | 2 +- common/src/main/res/values/strings.xml | 2 +- .../live/activity/LiveSwAnchorActivity.java | 14 ++++++++++++-- 5 files changed, 43 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/fragment/LiveNewWishListFragment.java b/common/src/main/java/com/yunbao/common/fragment/LiveNewWishListFragment.java index 88801f6bd..0348168f1 100644 --- a/common/src/main/java/com/yunbao/common/fragment/LiveNewWishListFragment.java +++ b/common/src/main/java/com/yunbao/common/fragment/LiveNewWishListFragment.java @@ -1,6 +1,7 @@ package com.yunbao.common.fragment; import android.os.Bundle; +import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -19,6 +20,7 @@ import com.yunbao.common.bean.WishModel2; import com.yunbao.common.event.LiveNewWishListCloseEvent; import com.yunbao.common.http.base.HttpCallback; import com.yunbao.common.http.live.LiveNetManager; +import com.yunbao.common.interfaces.CommonCallback; import com.yunbao.common.utils.Bus; import com.yunbao.common.utils.ToastUtil; import com.yunbao.common.utils.WordUtil; @@ -34,7 +36,11 @@ public class LiveNewWishListFragment extends BaseFragment { private RecyclerView wishList; private LiveNewWishAdapter liveNewWishAdapter; private ImageView imageView2, tvDone; + private CommonCallback mSetResultCallback ; + public void setResultCallback(CommonCallback mCommonCallback) { + this.mSetResultCallback = mCommonCallback; + } @Override public View createView(LayoutInflater layoutInflater, ViewGroup viewGroup) { return layoutInflater.inflate(R.layout.view_live_new_wish, viewGroup, false); @@ -151,6 +157,9 @@ public class LiveNewWishListFragment extends BaseFragment { @Override public void onSuccess(String data) { ToastUtil.show(WordUtil.isNewZh()?"修改成功":"Success"); + if (mSetResultCallback!=null){ + mSetResultCallback.callback(true); + } } @Override @@ -183,6 +192,10 @@ public class LiveNewWishListFragment extends BaseFragment { @Override public void onSuccess(String data) { ToastUtil.show(WordUtil.isNewZh()?"修改成功":"Success"); + //这里需要通知刷新心愿信息 + if (mSetResultCallback!=null){ + mSetResultCallback.callback(true); + } } @Override @@ -202,6 +215,9 @@ public class LiveNewWishListFragment extends BaseFragment { @Override public void onSuccess(String data) { ToastUtil.show(WordUtil.isNewZh()?"修改成功":"Success"); + if (mSetResultCallback!=null){ + mSetResultCallback.callback(true); + } } @Override diff --git a/common/src/main/java/com/yunbao/common/views/LiveNewWishListPopup.java b/common/src/main/java/com/yunbao/common/views/LiveNewWishListPopup.java index b0f409204..af38b6a8f 100644 --- a/common/src/main/java/com/yunbao/common/views/LiveNewWishListPopup.java +++ b/common/src/main/java/com/yunbao/common/views/LiveNewWishListPopup.java @@ -2,6 +2,8 @@ package com.yunbao.common.views; import android.graphics.Color; import android.text.TextUtils; +import android.util.Log; +import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -28,6 +30,7 @@ import com.yunbao.common.event.PopupViewDismissEvent; import com.yunbao.common.fragment.LiveNewWishListFragment; import com.yunbao.common.http.base.HttpCallback; import com.yunbao.common.http.live.LiveNetManager; +import com.yunbao.common.interfaces.CommonCallback; import com.yunbao.common.manager.IMLoginManager; import com.yunbao.common.utils.Bus; import com.yunbao.common.utils.DpUtil; @@ -61,6 +64,12 @@ public class LiveNewWishListPopup extends BottomPopupView { private LiveNewWishListFragment dayWishFragment, zhouXinFragment, lunarWishFragment, seasonalWishFragment; private ImageView wishListTop; + private CommonCallback mSetResultCallback ; + + public void setResultCallback(CommonCallback mCommonCallback) { + this.mSetResultCallback = mCommonCallback; + } + public LiveNewWishListPopup(@NonNull FragmentActivity context) { super(context); mContext = context; @@ -198,6 +207,10 @@ public class LiveNewWishListPopup extends BottomPopupView { zhouXinFragment = LiveNewWishListFragment.newInstance(2); lunarWishFragment = LiveNewWishListFragment.newInstance(3); seasonalWishFragment = LiveNewWishListFragment.newInstance(4); + dayWishFragment.setResultCallback(mSetResultCallback); + zhouXinFragment.setResultCallback(mSetResultCallback); + lunarWishFragment.setResultCallback(mSetResultCallback); + seasonalWishFragment.setResultCallback(mSetResultCallback); ViewList.add(dayWishFragment); ViewList.add(zhouXinFragment); ViewList.add(lunarWishFragment); diff --git a/common/src/main/res/values-en-rUS/strings.xml b/common/src/main/res/values-en-rUS/strings.xml index f3e7c73d0..b65faa9cc 100644 --- a/common/src/main/res/values-en-rUS/strings.xml +++ b/common/src/main/res/values-en-rUS/strings.xml @@ -1504,7 +1504,7 @@ Limited ride And limited avatar frame Notice Start Q&A Language Settings - openVip + open Vip After this setting, all robot languages will be covered by translation, please confirm whether this operation is completed! return diff --git a/common/src/main/res/values/strings.xml b/common/src/main/res/values/strings.xml index 3ccf33fc5..ab2c7a76e 100644 --- a/common/src/main/res/values/strings.xml +++ b/common/src/main/res/values/strings.xml @@ -1447,7 +1447,7 @@ Limited ride And limited avatar frame Game Notice Start Q&A - openVip + open Vip Language Settings After this setting, all robot languages will be covered by translation, please confirm whether this operation is completed! diff --git a/live/src/main/java/com/yunbao/live/activity/LiveSwAnchorActivity.java b/live/src/main/java/com/yunbao/live/activity/LiveSwAnchorActivity.java index 9ffffe5c7..81455f0bd 100644 --- a/live/src/main/java/com/yunbao/live/activity/LiveSwAnchorActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/LiveSwAnchorActivity.java @@ -68,6 +68,7 @@ import com.yunbao.common.http.HttpClient; import com.yunbao.common.http.LiveHttpConsts; import com.yunbao.common.http.LiveHttpUtil; import com.yunbao.common.http.live.LiveNetManager; +import com.yunbao.common.interfaces.CommonCallback; import com.yunbao.common.manager.IMLoginManager; import com.yunbao.common.manager.MicUserManager; import com.yunbao.common.manager.MicedUserManager; @@ -588,6 +589,14 @@ public class LiveSwAnchorActivity extends LiveActivity implements LiveFunctionCl } + private CommonCallback resultCallBack = new CommonCallback() { + @Override + public void callback(Boolean bean) { + if(true && mLiveRoomViewHolder!=null){ + mLiveRoomViewHolder.initWishData(); + } + } + }; /** * 打开心愿单窗口 */ @@ -596,10 +605,11 @@ public class LiveSwAnchorActivity extends LiveActivity implements LiveFunctionCl // if (mContext instanceof LiveRyAnchorActivity) { // fragment.show(((LiveRyAnchorActivity) mContext).getSupportFragmentManager(), "LiveWishListDialogFragment"); // } + LiveNewWishListPopup popup= new LiveNewWishListPopup(LiveSwAnchorActivity.this); + popup.setResultCallback(resultCallBack); new XPopup.Builder(mContext) .enableDrag(false) - .asCustom(new LiveNewWishListPopup(LiveSwAnchorActivity.this)) - + .asCustom(popup) .show(); } From 54cf21092cbfda16ae3e8e644a6b98677e2d5119 Mon Sep 17 00:00:00 2001 From: ningwenqiang Date: Tue, 15 Oct 2024 17:03:43 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E5=BF=83=E6=84=BF=E5=8D=95=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E6=B2=A1=E6=9C=89=E8=BF=9B=E8=A1=8C=E6=99=BA=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/live/views/LiveRoomViewHolder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java index 236c622cd..d08350b45 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -3471,6 +3471,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis } } initWishListData(wishlistBean); + }else { + stopPart2Flipper(wishFlipperRoot); } } catch (Exception e) { e.printStackTrace(); @@ -3518,7 +3520,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis * @param view 要从翻页器中移除的视图 */ private void stopPart2Flipper(View view) { - if (view == null) return; + if (view == null || newPart2Flipper==null) return; // 获取翻页器中当前的子视图数量,以判断是否满足停止翻页的条件 newPart2Flipper.getChildCount(); From f528353dd0e58af99d8d88962e22e790cdb1ef76 Mon Sep 17 00:00:00 2001 From: ningwenqiang Date: Tue, 15 Oct 2024 17:39:52 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E5=88=A4=E6=96=AD=E4=B8=80=E4=B8=8B?= =?UTF-8?q?=E5=BC=80=E5=85=B3=E5=BC=80=E5=90=AF=E6=98=AF=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=20=20ON=20=E5=BC=80=E5=85=B3=E5=85=B3=E9=97=AD=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=20OFF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/tmp/full-r8-config.txt | 24 +++++++++---------- common/src/main/res/values-en-rUS/strings.xml | 3 +++ common/src/main/res/values-zh/strings.xml | 2 ++ common/src/main/res/values/strings.xml | 3 +++ 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/app/tmp/full-r8-config.txt b/app/tmp/full-r8-config.txt index b0731b31e..1a86edd43 100644 --- a/app/tmp/full-r8-config.txt +++ b/app/tmp/full-r8-config.txt @@ -1,4 +1,4 @@ -# The proguard configuration file for the following section is D:\AndroidProject\pandorapan\app\build\intermediates\default_proguard_files\global\proguard-android.txt-8.3.1 +# The proguard configuration file for the following section is D:\AndroidProject\pandorapanP\app\build\intermediates\default_proguard_files\global\proguard-android.txt-8.3.1 # This is a configuration file for ProGuard. # http://proguard.sourceforge.net/index.html#manual/usage.html # @@ -95,8 +95,8 @@ # These classes are duplicated between android.jar and core-lambda-stubs.jar. -dontnote java.lang.invoke.** -# End of content from D:\AndroidProject\pandorapan\app\build\intermediates\default_proguard_files\global\proguard-android.txt-8.3.1 -# The proguard configuration file for the following section is D:\AndroidProject\pandorapan\app\proguard-rules.pro +# End of content from D:\AndroidProject\pandorapanP\app\build\intermediates\default_proguard_files\global\proguard-android.txt-8.3.1 +# The proguard configuration file for the following section is D:\AndroidProject\pandorapanP\app\proguard-rules.pro # Add project specific ProGuard rules here. # By default, the flags in this file are appended to flags specified # in /Users/macpro/Library/Android/sdk/tools/proguard/proguard-android.txt @@ -420,8 +420,8 @@ rx.internal.util.atomic.LinkedQueueNode* consumerNode; -ignorewarnings -# End of content from D:\AndroidProject\pandorapan\app\proguard-rules.pro -# The proguard configuration file for the following section is D:\AndroidProject\pandorapan\app\build\intermediates\aapt_proguard_file\link_testRelease\processLink_testReleaseResources\aapt_rules.txt +# End of content from D:\AndroidProject\pandorapanP\app\proguard-rules.pro +# The proguard configuration file for the following section is D:\AndroidProject\pandorapanP\app\build\intermediates\aapt_proguard_file\link_testRelease\processLink_testReleaseResources\aapt_rules.txt -keep class androidx.core.app.CoreComponentFactory { (); } -keep class androidx.core.content.FileProvider { (); } -keep class androidx.core.content.FileProvider4Utils { (); } @@ -1094,10 +1094,10 @@ rx.internal.util.atomic.LinkedQueueNode* consumerNode; -keepclassmembers class * { *** videoEditClick(android.view.View); } -# End of content from D:\AndroidProject\pandorapan\app\build\intermediates\aapt_proguard_file\link_testRelease\processLink_testReleaseResources\aapt_rules.txt -# The proguard configuration file for the following section is D:\AndroidProject\pandorapan\lib_faceunity\build\intermediates\consumer_proguard_dir\link_testRelease\exportLink_testReleaseConsumerProguardFiles\lib0\proguard.txt +# End of content from D:\AndroidProject\pandorapanP\app\build\intermediates\aapt_proguard_file\link_testRelease\processLink_testReleaseResources\aapt_rules.txt +# The proguard configuration file for the following section is D:\AndroidProject\pandorapanP\lib_faceunity\build\intermediates\consumer_proguard_dir\link_testRelease\exportLink_testReleaseConsumerProguardFiles\lib0\proguard.txt -# End of content from D:\AndroidProject\pandorapan\lib_faceunity\build\intermediates\consumer_proguard_dir\link_testRelease\exportLink_testReleaseConsumerProguardFiles\lib0\proguard.txt +# End of content from D:\AndroidProject\pandorapanP\lib_faceunity\build\intermediates\consumer_proguard_dir\link_testRelease\exportLink_testReleaseConsumerProguardFiles\lib0\proguard.txt # The proguard configuration file for the following section is C:\Users\CVB88\.gradle\caches\transforms-3\8d3e3177c15403546de73d87508067d6\transformed\jetified-XPopup-2.10.0\proguard.txt # Generated keep rule for Lifecycle observer adapter. -if class com.lxj.xpopup.core.BasePopupView { @@ -1157,9 +1157,9 @@ rx.internal.util.atomic.LinkedQueueNode* consumerNode; # End of content from C:\Users\CVB88\.gradle\caches\transforms-3\a1df9a6aa192455030f7c9970b70e0e9\transformed\material-1.4.0\proguard.txt -# The proguard configuration file for the following section is D:\AndroidProject\pandorapan\lib_google\build\intermediates\consumer_proguard_dir\link_testRelease\exportLink_testReleaseConsumerProguardFiles\lib0\proguard.txt +# The proguard configuration file for the following section is D:\AndroidProject\pandorapanP\lib_google\build\intermediates\consumer_proguard_dir\link_testRelease\exportLink_testReleaseConsumerProguardFiles\lib0\proguard.txt -# End of content from D:\AndroidProject\pandorapan\lib_google\build\intermediates\consumer_proguard_dir\link_testRelease\exportLink_testReleaseConsumerProguardFiles\lib0\proguard.txt +# End of content from D:\AndroidProject\pandorapanP\lib_google\build\intermediates\consumer_proguard_dir\link_testRelease\exportLink_testReleaseConsumerProguardFiles\lib0\proguard.txt # The proguard configuration file for the following section is C:\Users\CVB88\.gradle\caches\transforms-3\2929985d9627ba3bb45a0ebd18eaf9d3\transformed\jetified-linesdk-5.0.1\proguard.txt -keepattributes *Annotation* @@ -1510,9 +1510,9 @@ rx.internal.util.atomic.LinkedQueueNode* consumerNode; public boolean isLayoutSuppressed(); } # End of content from C:\Users\CVB88\.gradle\caches\transforms-3\e9de7db2640f13ae2ab2a585dfd19337\transformed\recyclerview-1.2.1\proguard.txt -# The proguard configuration file for the following section is D:\AndroidProject\pandorapan\TabLayout\build\intermediates\consumer_proguard_dir\release\exportReleaseConsumerProguardFiles\lib0\proguard.txt +# The proguard configuration file for the following section is D:\AndroidProject\pandorapanP\TabLayout\build\intermediates\consumer_proguard_dir\release\exportReleaseConsumerProguardFiles\lib0\proguard.txt -# End of content from D:\AndroidProject\pandorapan\TabLayout\build\intermediates\consumer_proguard_dir\release\exportReleaseConsumerProguardFiles\lib0\proguard.txt +# End of content from D:\AndroidProject\pandorapanP\TabLayout\build\intermediates\consumer_proguard_dir\release\exportReleaseConsumerProguardFiles\lib0\proguard.txt # The proguard configuration file for the following section is C:\Users\CVB88\.gradle\caches\transforms-3\bb5ec4ef561b90312eb1ca52da1f144d\transformed\jetified-facebook-applinks-15.2.0\proguard.txt # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. diff --git a/common/src/main/res/values-en-rUS/strings.xml b/common/src/main/res/values-en-rUS/strings.xml index b65faa9cc..7c9022141 100644 --- a/common/src/main/res/values-en-rUS/strings.xml +++ b/common/src/main/res/values-en-rUS/strings.xml @@ -1012,6 +1012,7 @@ Limited ride And limited avatar frame Not set no yes + Ultra HD hint In the case of unstable network speed, the selection of ultra HD may lead to the delay of the picture in the broadcast room. Do you confirm the selection? Stick to choice @@ -1507,4 +1508,6 @@ Limited ride And limited avatar frame open Vip After this setting, all robot languages will be covered by translation, please confirm whether this operation is completed! return + ON + OFF diff --git a/common/src/main/res/values-zh/strings.xml b/common/src/main/res/values-zh/strings.xml index a2ff7bfa8..81a042d98 100644 --- a/common/src/main/res/values-zh/strings.xml +++ b/common/src/main/res/values-zh/strings.xml @@ -1638,4 +1638,6 @@ 開通貴族 此設定後,所有機器人語言將會被翻譯覆蓋,請確認是否完成此操作 返回 + + diff --git a/common/src/main/res/values/strings.xml b/common/src/main/res/values/strings.xml index ab2c7a76e..1e378f0cb 100644 --- a/common/src/main/res/values/strings.xml +++ b/common/src/main/res/values/strings.xml @@ -1452,4 +1452,7 @@ Limited ride And limited avatar frame After this setting, all robot languages will be covered by translation, please confirm whether this operation is completed! return + ON + OFF + From 6b9d951c554b7b715d3a617b472fc1ab788abda1 Mon Sep 17 00:00:00 2001 From: ningwenqiang Date: Tue, 15 Oct 2024 18:03:14 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E5=88=A4=E6=96=AD=E4=B8=80=E4=B8=8B?= =?UTF-8?q?=E5=BC=80=E5=85=B3=E5=BC=80=E5=90=AF=E6=98=AF=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=20=20ON=20=E5=BC=80=E5=85=B3=E5=85=B3=E9=97=AD=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=20OFF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/common/views/LiveOpenCustomPopup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/yunbao/common/views/LiveOpenCustomPopup.java b/common/src/main/java/com/yunbao/common/views/LiveOpenCustomPopup.java index 30910ea5d..507ee5090 100644 --- a/common/src/main/java/com/yunbao/common/views/LiveOpenCustomPopup.java +++ b/common/src/main/java/com/yunbao/common/views/LiveOpenCustomPopup.java @@ -178,7 +178,7 @@ public class LiveOpenCustomPopup extends BottomPopupView { @Override public void onSuccess(LiveStetUpStatusModel data) { textLiveWishlist.setText(data.getWishListState() ? R.string.do_set : R.string.not_set); - textRobot.setText(data.getAiStateState() ? R.string.robot_yes : R.string.robot_no); + textRobot.setText(data.getAiStateState() ? R.string.robot_on : R.string.robot_off); } @Override From ecb44e510aa099f607af3e8de8f1b048fad706d5 Mon Sep 17 00:00:00 2001 From: ningwenqiang Date: Wed, 16 Oct 2024 13:58:44 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E7=A4=BC=E7=89=A9=E5=B1=95=E9=A6=86?= =?UTF-8?q?=E5=85=A8=E9=83=A8=E6=9B=BF=E6=8D=A2=E6=88=90=E6=96=B0=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/tmp/full-r8-config.txt | 12 ++++----- .../yunbao/live/views/LiveRoomViewHolder.java | 25 ++++++++++--------- .../main/activity/UserHomeActivity.java | 25 +++++++++---------- 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/app/tmp/full-r8-config.txt b/app/tmp/full-r8-config.txt index 1a86edd43..b2e167dd7 100644 --- a/app/tmp/full-r8-config.txt +++ b/app/tmp/full-r8-config.txt @@ -421,7 +421,7 @@ rx.internal.util.atomic.LinkedQueueNode* consumerNode; # End of content from D:\AndroidProject\pandorapanP\app\proguard-rules.pro -# The proguard configuration file for the following section is D:\AndroidProject\pandorapanP\app\build\intermediates\aapt_proguard_file\link_testRelease\processLink_testReleaseResources\aapt_rules.txt +# The proguard configuration file for the following section is D:\AndroidProject\pandorapanP\app\build\intermediates\aapt_proguard_file\link_onlineRelease\processLink_onlineReleaseResources\aapt_rules.txt -keep class androidx.core.app.CoreComponentFactory { (); } -keep class androidx.core.content.FileProvider { (); } -keep class androidx.core.content.FileProvider4Utils { (); } @@ -1094,10 +1094,10 @@ rx.internal.util.atomic.LinkedQueueNode* consumerNode; -keepclassmembers class * { *** videoEditClick(android.view.View); } -# End of content from D:\AndroidProject\pandorapanP\app\build\intermediates\aapt_proguard_file\link_testRelease\processLink_testReleaseResources\aapt_rules.txt -# The proguard configuration file for the following section is D:\AndroidProject\pandorapanP\lib_faceunity\build\intermediates\consumer_proguard_dir\link_testRelease\exportLink_testReleaseConsumerProguardFiles\lib0\proguard.txt +# End of content from D:\AndroidProject\pandorapanP\app\build\intermediates\aapt_proguard_file\link_onlineRelease\processLink_onlineReleaseResources\aapt_rules.txt +# The proguard configuration file for the following section is D:\AndroidProject\pandorapanP\lib_faceunity\build\intermediates\consumer_proguard_dir\link_onlineRelease\exportLink_onlineReleaseConsumerProguardFiles\lib0\proguard.txt -# End of content from D:\AndroidProject\pandorapanP\lib_faceunity\build\intermediates\consumer_proguard_dir\link_testRelease\exportLink_testReleaseConsumerProguardFiles\lib0\proguard.txt +# End of content from D:\AndroidProject\pandorapanP\lib_faceunity\build\intermediates\consumer_proguard_dir\link_onlineRelease\exportLink_onlineReleaseConsumerProguardFiles\lib0\proguard.txt # The proguard configuration file for the following section is C:\Users\CVB88\.gradle\caches\transforms-3\8d3e3177c15403546de73d87508067d6\transformed\jetified-XPopup-2.10.0\proguard.txt # Generated keep rule for Lifecycle observer adapter. -if class com.lxj.xpopup.core.BasePopupView { @@ -1157,9 +1157,9 @@ rx.internal.util.atomic.LinkedQueueNode* consumerNode; # End of content from C:\Users\CVB88\.gradle\caches\transforms-3\a1df9a6aa192455030f7c9970b70e0e9\transformed\material-1.4.0\proguard.txt -# The proguard configuration file for the following section is D:\AndroidProject\pandorapanP\lib_google\build\intermediates\consumer_proguard_dir\link_testRelease\exportLink_testReleaseConsumerProguardFiles\lib0\proguard.txt +# The proguard configuration file for the following section is D:\AndroidProject\pandorapanP\lib_google\build\intermediates\consumer_proguard_dir\link_onlineRelease\exportLink_onlineReleaseConsumerProguardFiles\lib0\proguard.txt -# End of content from D:\AndroidProject\pandorapanP\lib_google\build\intermediates\consumer_proguard_dir\link_testRelease\exportLink_testReleaseConsumerProguardFiles\lib0\proguard.txt +# End of content from D:\AndroidProject\pandorapanP\lib_google\build\intermediates\consumer_proguard_dir\link_onlineRelease\exportLink_onlineReleaseConsumerProguardFiles\lib0\proguard.txt # The proguard configuration file for the following section is C:\Users\CVB88\.gradle\caches\transforms-3\2929985d9627ba3bb45a0ebd18eaf9d3\transformed\jetified-linesdk-5.0.1\proguard.txt -keepattributes *Annotation* diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java index d08350b45..0a98d5c52 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -4221,18 +4221,19 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis } public void showGiftWall(String toUid, boolean isAnchor, String mAnchorName, String mAvatarUrl) { - GiftWallDialog giftWallDialog = new GiftWallDialog(); - Bundle bundle = new Bundle(); - bundle.putString(Constants.LIVE_UID, mLiveUid); - bundle.putString(Constants.LIVE_STREAM, mStream); - bundle.putString("mAnchorName", mAnchorName); - bundle.putString("mAvatarUrl", mAvatarUrl); - bundle.putString("toUid", toUid); - bundle.putInt("isAttention", isAttention); - bundle.putBoolean("isLive", isAnchor); - bundle.putBoolean("SBW", !(mContext instanceof LiveSwAnchorActivity || mContext instanceof LiveRyAnchorActivity)); - giftWallDialog.setArguments(bundle); - giftWallDialog.show(((AbsActivity) mContext).getSupportFragmentManager(), "GiftWallDialog"); + // GiftWallDialog giftWallDialog = new GiftWallDialog(); + new com.yunbao.common.dialog.GiftWallDialog(mContext, toUid, mAnchorName, toUid, isAnchor).setFullWindows(false).showDialog(); +// Bundle bundle = new Bundle(); +// bundle.putString(Constants.LIVE_UID, mLiveUid); +// bundle.putString(Constants.LIVE_STREAM, mStream); +// bundle.putString("mAnchorName", mAnchorName); +// bundle.putString("mAvatarUrl", mAvatarUrl); +// bundle.putString("toUid", toUid); +// bundle.putInt("isAttention", isAttention); +// bundle.putBoolean("isLive", isAnchor); +// bundle.putBoolean("SBW", !(mContext instanceof LiveSwAnchorActivity || mContext instanceof LiveRyAnchorActivity)); +// giftWallDialog.setArguments(bundle); +// giftWallDialog.show(((AbsActivity) mContext).getSupportFragmentManager(), "GiftWallDialog"); } diff --git a/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java b/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java index e4776463c..d3304b32b 100644 --- a/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java @@ -77,8 +77,6 @@ import com.yunbao.common.utils.WordUtil; import com.yunbao.common.views.GradientDrawable; import com.yunbao.common.views.UserHomeImgsViewHolder; import com.yunbao.live.activity.LiveRyAnchorActivity; -import com.yunbao.live.dialog.GiftWallDialog; -import com.yunbao.live.views.ShowBigPhoto; import com.yunbao.video.activity.VideoPlayActivity; import com.yunbao.video.utils.VideoStorge; @@ -788,17 +786,18 @@ public class UserHomeActivity extends AbsActivity { itemLayout03.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { - GiftWallDialog giftWallDialog = new GiftWallDialog(); - Bundle bundle = new Bundle(); - bundle.putString(Constants.LIVE_UID, uid); - bundle.putString("mAnchorName", userInfo.getUserHomeTopInfo().getUser_name()); - bundle.putString("mAvatarUrl", userInfo.getUserHomeTopInfo().getUser_avatar()); - bundle.putString("toUid", uid); - bundle.putInt("isAttention", userInfo.getUserHomeTopInfo().getIs_attention()); - bundle.putBoolean("isLive", isAnchor); - bundle.putBoolean("SBW", !(mContext instanceof LiveRyAnchorActivity)); - giftWallDialog.setArguments(bundle); - giftWallDialog.show(((AbsActivity) mContext).getSupportFragmentManager(), "GiftWallDialog"); + new com.yunbao.common.dialog.GiftWallDialog(mContext, uid,userInfo.getUserHomeTopInfo().getUser_name(), null,isAnchor).setFullWindows(true).showDialog(); +// GiftWallDialog giftWallDialog = new GiftWallDialog(); +// Bundle bundle = new Bundle(); +// bundle.putString(Constants.LIVE_UID, uid); +// bundle.putString("mAnchorName", userInfo.getUserHomeTopInfo().getUser_name()); +// bundle.putString("mAvatarUrl", userInfo.getUserHomeTopInfo().getUser_avatar()); +// bundle.putString("toUid", uid); +// bundle.putInt("isAttention", userInfo.getUserHomeTopInfo().getIs_attention()); +// bundle.putBoolean("isLive", isAnchor); +// bundle.putBoolean("SBW", !(mContext instanceof LiveRyAnchorActivity)); +// giftWallDialog.setArguments(bundle); +// giftWallDialog.show(((AbsActivity) mContext).getSupportFragmentManager(), "GiftWallDialog"); } }); itemLayout04.setOnClickListener(new View.OnClickListener() {