|
@@ -42,6 +42,7 @@ public class MemberShareActivity extends BaseActivity {
|
|
|
super.initData();
|
|
|
List<ContactBean> contactList = new DatabaseUtils().loadContacts();
|
|
|
mDataList = DataManager.getMembersList(contactList);
|
|
|
+ mDataList.addAll(DataManager.getMembersListInvaild(2));
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -68,6 +69,8 @@ public class MemberShareActivity extends BaseActivity {
|
|
|
@SuppressLint("NotifyDataSetChanged")
|
|
|
@Override
|
|
|
public void onClick(Constant.E_PAGER pagerType, int mViewIndex, int itemIndex, GridModel gridModel) {
|
|
|
+ if (itemIndex >= mDataList.size() - 2)
|
|
|
+ return;
|
|
|
for (int i = 0; i < mDataList.size(); i++) {
|
|
|
GridModel model = mDataList.get(i);
|
|
|
model.isSelected = i == itemIndex;
|
|
@@ -83,7 +86,8 @@ public class MemberShareActivity extends BaseActivity {
|
|
|
|
|
|
if (mShareLayout != null) {
|
|
|
mShareLayout.setVisibility(View.VISIBLE);
|
|
|
- mShareNameTv.setText(mShareContactBean.name);
|
|
|
+ String s = mShareContactBean.name.length() <= 7 ? mShareContactBean.name : mShareContactBean.name.substring(0, 7) + "...";
|
|
|
+ mShareNameTv.setText(s);
|
|
|
}
|
|
|
}
|
|
|
};
|