修复 [通讯录搜索问题]
This commit is contained in:
parent
26af3fbbdd
commit
35e0d3dc3e
@ -84,9 +84,14 @@ public class MsgAddressBookActivity extends AbsActivity {
|
|||||||
String key = editable.toString();
|
String key = editable.toString();
|
||||||
MyAddressBookFragment fragment = fragmentList.get(mViewPager.getCurrentItem());
|
MyAddressBookFragment fragment = fragmentList.get(mViewPager.getCurrentItem());
|
||||||
if (StringUtil.isEmpty(key)) {
|
if (StringUtil.isEmpty(key)) {
|
||||||
mIndicator.setVisibility(View.VISIBLE);
|
|
||||||
fragment.reload();
|
|
||||||
mViewPager.setUserInputEnabled(true);
|
mViewPager.setUserInputEnabled(true);
|
||||||
|
mIndicator.setVisibility(View.VISIBLE);
|
||||||
|
mViewPager.postDelayed(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
fragment.reload();
|
||||||
|
}
|
||||||
|
}, 100);
|
||||||
} else {
|
} else {
|
||||||
mIndicator.setVisibility(View.GONE);
|
mIndicator.setVisibility(View.GONE);
|
||||||
search(key);
|
search(key);
|
||||||
@ -232,7 +237,7 @@ public class MsgAddressBookActivity extends AbsActivity {
|
|||||||
.getPdluserFollow(position, new HttpCallback<List<MessageChatUserBean>>() {
|
.getPdluserFollow(position, new HttpCallback<List<MessageChatUserBean>>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(List<MessageChatUserBean> data) {
|
public void onSuccess(List<MessageChatUserBean> data) {
|
||||||
System.err.println("关注列表:"+data.size());
|
System.err.println("关注列表:" + data.size());
|
||||||
for (MessageChatUserBean item : data) {
|
for (MessageChatUserBean item : data) {
|
||||||
item.setType(MyAddressBookFragment.TYPE_FOLLOW);
|
item.setType(MyAddressBookFragment.TYPE_FOLLOW);
|
||||||
}
|
}
|
||||||
@ -254,7 +259,7 @@ public class MsgAddressBookActivity extends AbsActivity {
|
|||||||
.getPdluserFans(position, new HttpCallback<List<MessageChatUserBean>>() {
|
.getPdluserFans(position, new HttpCallback<List<MessageChatUserBean>>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(List<MessageChatUserBean> data) {
|
public void onSuccess(List<MessageChatUserBean> data) {
|
||||||
System.err.println("好友列表:"+data.size());
|
System.err.println("好友列表:" + data.size());
|
||||||
for (MessageChatUserBean item : data) {
|
for (MessageChatUserBean item : data) {
|
||||||
item.setType(MyAddressBookFragment.TYPE_FAN);
|
item.setType(MyAddressBookFragment.TYPE_FAN);
|
||||||
}
|
}
|
||||||
@ -276,7 +281,7 @@ public class MsgAddressBookActivity extends AbsActivity {
|
|||||||
.getPdluserFriend(position, new HttpCallback<List<MessageChatUserBean>>() {
|
.getPdluserFriend(position, new HttpCallback<List<MessageChatUserBean>>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(List<MessageChatUserBean> data) {
|
public void onSuccess(List<MessageChatUserBean> data) {
|
||||||
System.err.println("互关列表:"+data.size());
|
System.err.println("互关列表:" + data.size());
|
||||||
for (MessageChatUserBean item : data) {
|
for (MessageChatUserBean item : data) {
|
||||||
item.setType(MyAddressBookFragment.TYPE_MUTUAL);
|
item.setType(MyAddressBookFragment.TYPE_MUTUAL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user