Browse Source

用户协议与隐私政策

huyuguo 5 years ago
parent
commit
36c7fba9bb

+ 6 - 0
app/src/main/java/com/electric/chargingpile/activity/AboutActivity.java

@ -62,6 +62,12 @@ public class AboutActivity extends Activity implements OnClickListener, EasyPerm
62 62
        getVersion();
63 63
    }
64 64

65
    public void onPrivacyView(View view) {
66
        Intent intent = new Intent(getApplication(), IntegralDescriptionActivity.class);
67
        intent.putExtra("url", "http://evcharge.cc/pc/agreement.html");
68
        startActivity(intent);
69
    }
70

65 71
    public void getVersion() {
66 72
        try {
67 73
            PackageManager manager = getApplication().getPackageManager();

+ 11 - 0
app/src/main/res/layout/activity_about.xml

@ -101,6 +101,17 @@
101 101

102 102

103 103
        <TextView
104
            android:text="《用户协议和隐私政策》"
105
            android:layout_width="wrap_content"
106
            android:layout_above="@+id/android"
107
            android:textSize="15sp"
108
            android:textColor="#1e90ff"
109
            android:layout_centerHorizontal="true"
110
            android:onClick="onPrivacyView"
111
            android:clickable="true"
112
            android:layout_marginBottom="10dp"
113
            android:layout_height="wrap_content"/>
114
        <TextView
104 115
            android:id="@+id/android"
105 116
            android:layout_width="wrap_content"
106 117
            android:layout_height="wrap_content"