From 35e0d3dc3ef24fd1b03841826b6f87e73023fc90 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Wed, 3 Apr 2024 18:02:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20[=E9=80=9A=E8=AE=AF?= =?UTF-8?q?=E5=BD=95=E6=90=9C=E7=B4=A2=E9=97=AE=E9=A2=98]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/activity/MsgAddressBookActivity.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/main/src/main/java/com/yunbao/main/activity/MsgAddressBookActivity.java b/main/src/main/java/com/yunbao/main/activity/MsgAddressBookActivity.java index 078f07ae7..6ebf9897d 100644 --- a/main/src/main/java/com/yunbao/main/activity/MsgAddressBookActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/MsgAddressBookActivity.java @@ -84,9 +84,14 @@ public class MsgAddressBookActivity extends AbsActivity { String key = editable.toString(); MyAddressBookFragment fragment = fragmentList.get(mViewPager.getCurrentItem()); if (StringUtil.isEmpty(key)) { - mIndicator.setVisibility(View.VISIBLE); - fragment.reload(); mViewPager.setUserInputEnabled(true); + mIndicator.setVisibility(View.VISIBLE); + mViewPager.postDelayed(new Runnable() { + @Override + public void run() { + fragment.reload(); + } + }, 100); } else { mIndicator.setVisibility(View.GONE); search(key); @@ -232,7 +237,7 @@ public class MsgAddressBookActivity extends AbsActivity { .getPdluserFollow(position, new HttpCallback>() { @Override public void onSuccess(List data) { - System.err.println("关注列表:"+data.size()); + System.err.println("关注列表:" + data.size()); for (MessageChatUserBean item : data) { item.setType(MyAddressBookFragment.TYPE_FOLLOW); } @@ -254,7 +259,7 @@ public class MsgAddressBookActivity extends AbsActivity { .getPdluserFans(position, new HttpCallback>() { @Override public void onSuccess(List data) { - System.err.println("好友列表:"+data.size()); + System.err.println("好友列表:" + data.size()); for (MessageChatUserBean item : data) { item.setType(MyAddressBookFragment.TYPE_FAN); } @@ -276,7 +281,7 @@ public class MsgAddressBookActivity extends AbsActivity { .getPdluserFriend(position, new HttpCallback>() { @Override public void onSuccess(List data) { - System.err.println("互关列表:"+data.size()); + System.err.println("互关列表:" + data.size()); for (MessageChatUserBean item : data) { item.setType(MyAddressBookFragment.TYPE_MUTUAL); }