diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveUserAnchorMailBoxPopDialog.java b/live/src/main/java/com/yunbao/live/dialog/LiveUserAnchorMailBoxPopDialog.java index 18b98a080..1da04a014 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveUserAnchorMailBoxPopDialog.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveUserAnchorMailBoxPopDialog.java @@ -77,10 +77,12 @@ public class LiveUserAnchorMailBoxPopDialog extends AbsDialogPopupWindow { empty.setVisibility(View.GONE); list.setVisibility(View.VISIBLE); return JSON.parseArray(Arrays.toString(info), LiveUserMailBoxModel.class); - } else { + } else if (adapter.getList().size() == 0) { empty.setVisibility(VISIBLE); list.setVisibility(GONE); return new ArrayList(); + }else{ + return new ArrayList<>(); } } else {