Browse Source

1.18ui修改

小狼 5 years ago
parent
commit
b9a4dabac7

+ 11 - 5
app/src/main/java/com/smileflowpig/money/moneyplatfrom/activities/MyCollectActivity.java

@@ -163,18 +163,24 @@ public class MyCollectActivity extends PresenterActivity implements View.OnClick
163 163
                                 }
164 164
                                 daiAdapter.notifyDataSetChanged();
165 165
                                 sum=0;
166
-                                for (int i = 0; i < list2.size(); i++) {
167
-                                    if(list2.get(i).iscont){
168
-                                        sum++;
169
-                                    }
170
-                                }
166
+
171 167
                                 if(isscont){
168
+                                    for (int i = 0; i < list2.size()-1; i++) {
169
+                                        if(list2.get(i).iscont){
170
+                                            sum++;
171
+                                        }
172
+                                    }
172 173
                                     if(sum== list2.size()-1){
173 174
                                         checkBox.setChecked(true);
174 175
                                     }else {
175 176
                                         checkBox.setChecked(false);
176 177
                                     }
177 178
                                 }else {
179
+                                    for (int i = 0; i < list2.size(); i++) {
180
+                                        if(list2.get(i).iscont){
181
+                                            sum++;
182
+                                        }
183
+                                    }
178 184
                                     if(sum== list2.size()){
179 185
                                         checkBox.setChecked(true);
180 186
                                     }else {