| | |
| | | import cn.com.basic.face.util.AppApi;
|
| | | import cn.com.basic.face.util.CharacterParser;
|
| | |
|
| | | public class PhoneCallMng {
|
| | | public class PhoneCallMng extends BaseMng {
|
| | |
|
| | | private static PhoneCallMng instance = new PhoneCallMng();
|
| | | public static PhoneCallMng getInstance() {
|
| | |
| | | }
|
| | | }
|
| | | sort(list, isSortByDept);
|
| | | List allItems = new ArrayList();
|
| | | List itemList = new ArrayList();
|
| | | String name = "";
|
| | | String prev = "";
|
| | | for (int i = 0; i < list.size(); i++) {
|
| | |
| | |
|
| | | }
|
| | | if (!name.equals(prev)) {
|
| | | allItems.add(name);
|
| | | itemList.add(name);
|
| | | }
|
| | | allItems.add(item);
|
| | | itemList.add(item);
|
| | | prev = name;
|
| | | }
|
| | | if (hasMorePages()) {
|
| | | allItems.add(CommonVariables.Page.hasMorePages);
|
| | | } else {
|
| | | if (getPageNum() > 1) {
|
| | | //allItems.add(CommonVariables.Page.reachBottom);
|
| | | } else {
|
| | | if (allItems.size() > 0) {
|
| | | //allItems.add(CommonVariables.Page.reachBottom);
|
| | | } else {
|
| | | //allItems.add(CommonVariables.Page.noMorePage);
|
| | | }
|
| | | }
|
| | | }
|
| | | PhoneCallFragment.getInstance().get_fragment_phone_call_left_list_view().show(isSortByDept, allItems, append);
|
| | | addPageFooter(hasMorePages(), getPageNum(), itemList);
|
| | | PhoneCallFragment.getInstance().get_fragment_phone_call_left_list_view().show(isSortByDept, itemList, append);
|
| | | }
|
| | | });
|
| | | }
|