use of com.lingtuan.firefly.contact.adapter.AddContactFriendsAdapter in project SmartMesh_Android by SmartMeshFoundation.
the class AddContactFriendsNewUI method initData.
@Override
protected void initData() {
setTitle(getString(R.string.contact_friends));
mList = new ArrayList<>();
mContactListAdapter = new AddContactFriendsAdapter(mList, AddContactFriendsNewUI.this);
mContactListAdapter.setContactListener(this);
mListView.setAdapter(mContactListAdapter);
contactReceiver = new RefreshContactReceiver();
IntentFilter filter = new IntentFilter(Constants.ACTION_SELECT_CONTACT_REFRESH);
filter.addAction(LoadDataService.ACTION_REFRESH_UNRECOMMENT);
LocalBroadcastManager.getInstance(this).registerReceiver(contactReceiver, filter);
mProgressDialog = LoadingDialog.showDialog(AddContactFriendsNewUI.this, null, null);
mProgressDialog.setCancelable(false);
mProgressDialog.setOnKeyListener(new OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {
isBack = true;
Utils.exitActivityAndBackAnim(AddContactFriendsNewUI.this, true);
}
return false;
}
});
mProgressDialog.show();
new ContactThread().start();
}
Aggregations