diff --git a/common/src/main/java/com/yunbao/common/views/LiveAnchorMessageCustomPopup.java b/common/src/main/java/com/yunbao/common/views/LiveAnchorMessageCustomPopup.java index 4f574524e..0898040ab 100644 --- a/common/src/main/java/com/yunbao/common/views/LiveAnchorMessageCustomPopup.java +++ b/common/src/main/java/com/yunbao/common/views/LiveAnchorMessageCustomPopup.java @@ -55,7 +55,15 @@ public class LiveAnchorMessageCustomPopup extends BottomPopupView { @Override public void onSuccess(List data) { size = data.size(); - adapter.addData(data); + + if (page == 1 && size == 0) { + liveMessage.setVisibility(GONE); + findViewById(R.id.img_no_new).setVisibility(VISIBLE); + } else { + findViewById(R.id.img_no_new).setVisibility(GONE); + liveMessage.setVisibility(VISIBLE); + adapter.addData(data); + } } @Override diff --git a/common/src/main/res/layout/dialog_live_anchor_message.xml b/common/src/main/res/layout/dialog_live_anchor_message.xml index 1c017ccf9..a2c1db4bb 100644 --- a/common/src/main/res/layout/dialog_live_anchor_message.xml +++ b/common/src/main/res/layout/dialog_live_anchor_message.xml @@ -17,5 +17,14 @@ + android:layout_height="match_parent" + android:visibility="gone" /> + + \ No newline at end of file diff --git a/config.gradle b/config.gradle index dcec2a45f..1c9c810b7 100644 --- a/config.gradle +++ b/config.gradle @@ -9,9 +9,9 @@ ext { ] manifestPlaceholders = [ //正式 -// serverHost : "https://napi.yaoulive.com", + serverHost : "https://napi.yaoulive.com", //测试 - serverHost : "https://ceshi.yaoulive.com", +// serverHost : "https://ceshi.yaoulive.com", //腾讯地图 txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",