|
|
@@ -110,7 +110,6 @@ public class BServiceSearchActivity extends OABaseActivity implements View.OnCli
|
|
|
|
|
|
@Override
|
|
|
public void onPullUpToRefresh(PullToRefreshBase<ListView> refreshView) {
|
|
|
- // TODO: 2017/9/30 加载更多
|
|
|
mPageIndex++;
|
|
|
loadListData(mPageIndex);
|
|
|
}
|
|
|
@@ -142,7 +141,7 @@ public class BServiceSearchActivity extends OABaseActivity implements View.OnCli
|
|
|
|
|
|
mBServiceList = new ArrayList<>();
|
|
|
mBserviceListAdapter = new ItemBserviceListAdapter(this, mBServiceList);
|
|
|
- mSearchListView = (PullToRefreshListView) findViewById(R.id.book_service_search_ptlv);
|
|
|
+ mSearchListView = findViewById(R.id.book_service_search_ptlv);
|
|
|
mSearchListView.setMode(PullToRefreshBase.Mode.PULL_FROM_END);
|
|
|
mSearchListView.setAdapter(mBserviceListAdapter);
|
|
|
|
|
|
@@ -203,13 +202,16 @@ public class BServiceSearchActivity extends OABaseActivity implements View.OnCli
|
|
|
if (mPageIndex > 1)
|
|
|
mPageIndex--;
|
|
|
}
|
|
|
+ LogUtil.d("mBServiceList","mBServiceList.size:"+mBServiceList.size());
|
|
|
+ mBserviceListAdapter.setObjects(mBServiceList);
|
|
|
mBserviceListAdapter.notifyDataSetChanged();
|
|
|
if (mBServiceList.size() == 0) {
|
|
|
mEmptyLayout.showEmpty();
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
-
|
|
|
+ LogUtil.d("o.toString 发生异常" + e.toString());
|
|
|
+ e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
}));
|