Browse Source

代码修改

huyuguo 4 years ago
parent
commit
dccf7f6734

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

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

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

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

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

73
        no_data = findViewById(R.id.no_data);
73
        no_data = findViewById(R.id.no_data);
74
74
75
        String data = getIntent().getStringExtra("data");
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
        if (mList.size() >= 3) {
81
        if (mList.size() >= 3) {
78
            canAdd = false;
82
            canAdd = false;
79
            add.setTextColor(Color.parseColor("#CCCCCC"));
83
            add.setTextColor(Color.parseColor("#CCCCCC"));