Browse Source

修改因华为市场上架的问题

hy 3 years ago
parent
commit
86217c6f46

+ 10 - 2
app/src/main/java/com/electric/chargingpile/activity/PrivacyAgreementActivity.java

91
            public void onClick(View v) {
91
            public void onClick(View v) {
92
                new AlertDialogCommon(PrivacyAgreementActivity.this).builder()
92
                new AlertDialogCommon(PrivacyAgreementActivity.this).builder()
93
                        .setMsg("您需要同意《充电桩隐私协议》方可使用本软件")
93
                        .setMsg("您需要同意《充电桩隐私协议》方可使用本软件")
94
                        .setPositiveButton("知道了", new View.OnClickListener() {
94
                        .setPositiveButton("不退出", new View.OnClickListener() {
95
                            @Override
95
                            @Override
96
                            public void onClick(View v) {
96
                            public void onClick(View v) {
97
98
                            }
99
                        })
100
                        .setNegativeButton("退出", new View.OnClickListener() {
101
                            @Override
102
                            public void onClick(View v) {
103
                                PrivacyAgreementActivity.this.finish();
97
                            }
104
                            }
98
                        }).show();
105
                        })
106
                        .show();
99
            }
107
            }
100
        });
108
        });
101
    }
109
    }

+ 1 - 1
app/src/main/res/layout/activity_permission_agreement.xml

225
            android:layout_marginTop="15dp"
225
            android:layout_marginTop="15dp"
226
            android:background="@drawable/privacy_agreement_btn_shape"
226
            android:background="@drawable/privacy_agreement_btn_shape"
227
            android:gravity="center"
227
            android:gravity="center"
228
            android:text="知道了"
228
            android:text="确定"
229
            android:textColor="@color/white"
229
            android:textColor="@color/white"
230
            android:textSize="14sp" />
230
            android:textSize="14sp" />
231
231