VpnSettings: make more fields available as advanced options.
Now users can manually override DNS search domains, DNS servers, and forwarding routes for each VPN network. Change-Id: I10b8e383ac19fd19d23938dff78201a71724d58f
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
-->
|
||||
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -96,15 +96,27 @@
|
||||
android:prompt="@string/vpn_ipsec_ca_cert" />
|
||||
</LinearLayout>
|
||||
|
||||
<CheckBox style="@style/vpn_value" android:id="@+id/show_options"
|
||||
android:singleLine="false"
|
||||
android:text="@string/vpn_show_options"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout android:id="@+id/options"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
<TextView style="@style/vpn_label" android:text="@string/vpn_search_domains"/>
|
||||
<EditText style="@style/vpn_value" android:id="@+id/search_domains"
|
||||
android:hint="@string/vpn_not_used"/>
|
||||
|
||||
<!-- Not sure if we have time to make it. -->
|
||||
<TextView style="@style/vpn_label" android:text="@string/vpn_routes"
|
||||
android:visibility="gone"/>
|
||||
<TextView style="@style/vpn_label" android:text="@string/vpn_dns_servers"/>
|
||||
<EditText style="@style/vpn_value" android:id="@+id/dns_servers"
|
||||
android:hint="@string/vpn_not_used"/>
|
||||
|
||||
<TextView style="@style/vpn_label" android:text="@string/vpn_routes"/>
|
||||
<EditText style="@style/vpn_value" android:id="@+id/routes"
|
||||
android:visibility="gone"/>
|
||||
android:hint="@string/vpn_not_used"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout android:id="@+id/login"
|
||||
|
@@ -3503,18 +3503,21 @@ found in the list of installed applications.</string>
|
||||
<string name="vpn_ipsec_user_cert">IPSec user certificate</string>
|
||||
<!-- Selection label for the IPSec CA certificate of a VPN network. [CHAR LIMIT=40] -->
|
||||
<string name="vpn_ipsec_ca_cert">IPSec CA certificate</string>
|
||||
<!-- Checkbox label to show advanced options of a VPN network. [CHAR LIMIT=40] -->
|
||||
<string name="vpn_show_options">Show advanced options</string>
|
||||
<!-- Input label for the DNS search domains of a VPN network. [CHAR LIMIT=40] -->
|
||||
<string name="vpn_search_domains">DNS search domains</string>
|
||||
<!-- Input label for the DNS servers of a VPN network. [CHAR LIMIT=40] -->
|
||||
<string name="vpn_dns_servers">DNS servers (e.g. 8.8.8.8)</string>
|
||||
<!-- Input label for the forwarding routes of a VPN network. [CHAR LIMIT=40] -->
|
||||
<string name="vpn_routes">Forwarding routes</string>
|
||||
<string name="vpn_routes">Forwarding routes (e.g. 10.0.0.0/8)</string>
|
||||
<!-- Input label for the username of a VPN network. [CHAR LIMIT=40] -->
|
||||
<string name="vpn_username">Username</string>
|
||||
<!-- Input label for the password of a VPN network. [CHAR LIMIT=40] -->
|
||||
<string name="vpn_password">Password</string>
|
||||
<!-- Checkbox label to save the username and the password for a VPN network. [CHAR LIMIT=40] -->
|
||||
<string name="vpn_save_login">Save account information</string>
|
||||
|
||||
<!-- Hint for not filling an optional field in a VPN configuration. [CHAR LIMIT=40] -->
|
||||
<!-- Hint for not using an optional feature of a VPN network. [CHAR LIMIT=40] -->
|
||||
<string name="vpn_not_used">(not used)</string>
|
||||
<!-- Option to not use a CA certificate to verify the VPN server. [CHAR LIMIT=40] -->
|
||||
<string name="vpn_no_ca_cert">(do not verify server)</string>
|
||||
|
@@ -143,15 +143,14 @@
|
||||
<style name="vpn_label">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:textSize">16sp</item>
|
||||
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
|
||||
</style>
|
||||
|
||||
<style name="vpn_value">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:textSize">18sp</item>
|
||||
<item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
<item name="android:paddingBottom">1mm</item>
|
||||
</style>
|
||||
|
||||
<style name="InputMethodPreferenceStyle">
|
||||
|
Reference in New Issue
Block a user