Sfoglia il codice sorgente

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

hy 3 anni fa
parent
commit
86217c6f46

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

@ -91,11 +91,19 @@ public class PrivacyAgreementActivity extends Activity {
91 91
            public void onClick(View v) {
92 92
                new AlertDialogCommon(PrivacyAgreementActivity.this).builder()
93 93
                        .setMsg("您需要同意《充电桩隐私协议》方可使用本软件")
94
                        .setPositiveButton("知道了", new View.OnClickListener() {
94
                        .setPositiveButton("不退出", new View.OnClickListener() {
95 95
                            @Override
96 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,7 +225,7 @@
225 225
            android:layout_marginTop="15dp"
226 226
            android:background="@drawable/privacy_agreement_btn_shape"
227 227
            android:gravity="center"
228
            android:text="知道了"
228
            android:text="确定"
229 229
            android:textColor="@color/white"
230 230
            android:textSize="14sp" />
231 231