|
@@ -128,8 +128,9 @@ public class MyCollectActivity extends PresenterActivity implements View.OnClick
|
128
|
128
|
if(collectListBean.rst.pageinfo.hasNext){
|
129
|
129
|
page++;
|
130
|
130
|
//mynullcont.setVisibility(View.GONE);
|
131
|
|
-
|
|
131
|
+ isscont=false;
|
132
|
132
|
}else {
|
|
133
|
+ isscont=true;
|
133
|
134
|
refreshlayout.setLoadmoreFinished(true);
|
134
|
135
|
List<CollectListBean.RstBean.DataBean> list3=new ArrayList<>();
|
135
|
136
|
list3.add(new CollectListBean.RstBean.DataBean());
|
|
@@ -162,16 +163,31 @@ public class MyCollectActivity extends PresenterActivity implements View.OnClick
|
162
|
163
|
}
|
163
|
164
|
daiAdapter.notifyDataSetChanged();
|
164
|
165
|
sum=0;
|
165
|
|
- for (int i = 0; i < list2.size(); i++) {
|
166
|
|
- if(list2.get(i).iscont){
|
167
|
|
- sum++;
|
|
166
|
+
|
|
167
|
+ if(isscont){
|
|
168
|
+ for (int i = 0; i < list2.size()-1; i++) {
|
|
169
|
+ if(list2.get(i).iscont){
|
|
170
|
+ sum++;
|
|
171
|
+ }
|
|
172
|
+ }
|
|
173
|
+ if(sum== list2.size()-1){
|
|
174
|
+ checkBox.setChecked(true);
|
|
175
|
+ }else {
|
|
176
|
+ checkBox.setChecked(false);
|
168
|
177
|
}
|
169
|
|
- }
|
170
|
|
- if(sum== list2.size()){
|
171
|
|
- checkBox.setChecked(true);
|
172
|
178
|
}else {
|
173
|
|
- checkBox.setChecked(false);
|
|
179
|
+ for (int i = 0; i < list2.size(); i++) {
|
|
180
|
+ if(list2.get(i).iscont){
|
|
181
|
+ sum++;
|
|
182
|
+ }
|
|
183
|
+ }
|
|
184
|
+ if(sum== list2.size()){
|
|
185
|
+ checkBox.setChecked(true);
|
|
186
|
+ }else {
|
|
187
|
+ checkBox.setChecked(false);
|
|
188
|
+ }
|
174
|
189
|
}
|
|
190
|
+
|
175
|
191
|
}else {
|
176
|
192
|
MobclickAgent.onEvent(MyCollectActivity.this,"mineCollectInto");
|
177
|
193
|
DetailActivity.show(MyCollectActivity.this, list2.get(pos).id+"","notice",0,9);
|