@@ -30,8 +30,8 @@ public abstract class FastRefreshLoadActivity<T>
3030 protected RecyclerView mRecyclerView ;
3131 protected StatusLayoutManager mStatusManager ;
3232 private BaseQuickAdapter mQuickAdapter ;
33- protected int DEFAULT_PAGE = 0 ;
34- protected int DEFAULT_PAGE_SIZE = 10 ;
33+ protected int mDefaultPage = 0 ;
34+ protected int mDefaultPageSize = 10 ;
3535
3636 protected FastRefreshLoadDelegate <T > mFastRefreshLoadDelegate ;
3737 private Class <?> mClass ;
@@ -107,12 +107,12 @@ public StatusLayoutManager getStatusLayoutManager() {
107107
108108 @ Override
109109 public int getCurrentPage () {
110- return DEFAULT_PAGE ;
110+ return mDefaultPage ;
111111 }
112112
113113 @ Override
114114 public int getPageSize () {
115- return DEFAULT_PAGE_SIZE ;
115+ return mDefaultPageSize ;
116116 }
117117
118118 @ Override
@@ -145,18 +145,18 @@ public boolean isLoadMoreEnable() {
145145
146146 @ Override
147147 public void onRefresh (RefreshLayout refreshlayout ) {
148- DEFAULT_PAGE = 0 ;
148+ mDefaultPage = 0 ;
149149 mFastRefreshLoadDelegate .setLoadMore (isLoadMoreEnable ());
150- loadData (DEFAULT_PAGE );
150+ loadData (mDefaultPageSize );
151151 }
152152
153153 @ Override
154154 public void onLoadMoreRequested () {
155- loadData (++DEFAULT_PAGE );
155+ loadData (++mDefaultPage );
156156 }
157157
158158 @ Override
159159 public void loadData () {
160- loadData (DEFAULT_PAGE );
160+ loadData (mDefaultPage );
161161 }
162162}
0 commit comments