Ver Código Fonte

私人桩bug修改

huyuguo 4 anos atrás
pai
commit
1c02a456e9

+ 1 - 1
app/src/main/java/com/electric/chargingpile/activity/PrivateZhaungListActivity.java

@ -94,7 +94,7 @@ public class PrivateZhaungListActivity extends Activity implements View.OnClickL
94 94
                    zhanList.clear();
95 95
                    if (datas.size() > 0) {
96 96
                        zhanList.addAll(datas);
97
                        privateZhuangListAdapter.notifyDataSetChanged();
97
                        privateZhuangListAdapter.changeData(zhanList);
98 98
99 99
                    } else {
100 100
                        Intent intent = new Intent(getApplicationContext(), PrivateZhuangInfoActivity.class);

+ 3 - 3
app/src/main/java/com/electric/chargingpile/adapter/PrivateZhuangListAdapter.java

@ -355,9 +355,8 @@ public class PrivateZhuangListAdapter extends BaseAdapter {
355 355
356 356
                    String deny_inf = datas.get(position).getString("deny_inf");
357 357
                    if ("".equals(deny_inf)) {
358
                        holder.reason.setVisibility(View.GONE);
358
                        holder.reason.setText("");
359 359
                    } else {
360
                        holder.reason.setVisibility(View.VISIBLE);
361 360
                        holder.reason.setText("原因:" + deny_inf);
362 361
                    }
363 362
                }
@ -401,7 +400,6 @@ public class PrivateZhuangListAdapter extends BaseAdapter {
401 400
                String code = JsonUtils.getKeyResult(response, "code");
402 401
                if (code.equals("200")) {
403 402
                    getListData();
404
                    notifyDataSetChanged();
405 403
                }
406 404
            }
407 405
        });
@ -446,6 +444,8 @@ public class PrivateZhuangListAdapter extends BaseAdapter {
446 444
                        PrivateZhaungListActivity.privateZhuangListAdapter = new PrivateZhuangListAdapter(datas, MainApplication.context);
447 445
                        PrivateZhaungListActivity.listview.setAdapter(PrivateZhaungListActivity.privateZhuangListAdapter);
448 446
                    }
447
448
                    notifyDataSetChanged();
449 449
                }
450 450
            }
451 451
        });