huyuguo 4 年 前
コミット
dccf7f6734

+ 3 - 1
app/src/main/AndroidManifest.xml

@ -71,7 +71,9 @@
71 71
        android:resizeableActivity="true"
72 72
        android:theme="@style/AppTheme"
73 73
        tools:ignore="LockedOrientationActivity">
74
        <activity android:name=".activity.CarOwnerCertificateListActivity"></activity>
74
        <activity
75
            android:name=".activity.CarOwnerCertificateListActivity"
76
            android:launchMode="singleTask"></activity>
75 77
        <activity
76 78
            android:name=".activity.PrivacyAgreementActivity"
77 79
            android:screenOrientation="portrait">

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

@ -607,6 +607,7 @@ public class CarOwnerCertificateActivity extends AppCompatActivity implements Vi
607 607
                if ("01".equals(rtnCode)) {
608 608
                    ToastUtil.showToast(getApplicationContext(), "认证信息提交成功,请等待审核", Toast.LENGTH_SHORT);
609 609
                    finish();
610
                    startActivity(new Intent(CarOwnerCertificateActivity.this, CarOwnerCertificateListActivity.class));
610 611
                } else {
611 612
                    ToastUtil.showToast(getApplicationContext(), "认证信息提交超时,请重新提交", Toast.LENGTH_SHORT);
612 613
                }

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

@ -73,7 +73,11 @@ public class CarOwnerCertificateListActivity extends AppCompatActivity {
73 73
        no_data = findViewById(R.id.no_data);
74 74
75 75
        String data = getIntent().getStringExtra("data");
76
        mList = JsonUtils.parseToObjectList(data, CarOwnerCertificateBean.class);
76
        if (data == null) {
77
            getCarOwnerCertificateList();
78
        } else {
79
            mList = JsonUtils.parseToObjectList(data, CarOwnerCertificateBean.class);
80
        }
77 81
        if (mList.size() >= 3) {
78 82
            canAdd = false;
79 83
            add.setTextColor(Color.parseColor("#CCCCCC"));