@@ -30,8 +30,8 @@ public abstract class FastRefreshLoadActivity<T>
30
30
protected RecyclerView mRecyclerView ;
31
31
protected StatusLayoutManager mStatusManager ;
32
32
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 ;
35
35
36
36
protected FastRefreshLoadDelegate <T > mFastRefreshLoadDelegate ;
37
37
private Class <?> mClass ;
@@ -107,12 +107,12 @@ public StatusLayoutManager getStatusLayoutManager() {
107
107
108
108
@ Override
109
109
public int getCurrentPage () {
110
- return DEFAULT_PAGE ;
110
+ return mDefaultPage ;
111
111
}
112
112
113
113
@ Override
114
114
public int getPageSize () {
115
- return DEFAULT_PAGE_SIZE ;
115
+ return mDefaultPageSize ;
116
116
}
117
117
118
118
@ Override
@@ -145,18 +145,18 @@ public boolean isLoadMoreEnable() {
145
145
146
146
@ Override
147
147
public void onRefresh (RefreshLayout refreshlayout ) {
148
- DEFAULT_PAGE = 0 ;
148
+ mDefaultPage = 0 ;
149
149
mFastRefreshLoadDelegate .setLoadMore (isLoadMoreEnable ());
150
- loadData (DEFAULT_PAGE );
150
+ loadData (mDefaultPageSize );
151
151
}
152
152
153
153
@ Override
154
154
public void onLoadMoreRequested () {
155
- loadData (++DEFAULT_PAGE );
155
+ loadData (++mDefaultPage );
156
156
}
157
157
158
158
@ Override
159
159
public void loadData () {
160
- loadData (DEFAULT_PAGE );
160
+ loadData (mDefaultPage );
161
161
}
162
162
}
0 commit comments