diff options
author | Jeff Davidson <jpd@google.com> | 2014-08-21 04:08:55 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-08-21 04:08:55 +0000 |
commit | 7f133dce33dd97a7e82dc9d7e161251a8c635155 (patch) | |
tree | cfc2530726ff27e08b15021d7214ec598e7ee8ac /packages/VpnDialogs/res | |
parent | 561f7f438352f70fbefb9c7606269162527e7fe5 (diff) | |
parent | 814c033d38a856068a5f131f2abf13ea73cc500c (diff) | |
download | frameworks_base-7f133dce33dd97a7e82dc9d7e161251a8c635155.zip frameworks_base-7f133dce33dd97a7e82dc9d7e161251a8c635155.tar.gz frameworks_base-7f133dce33dd97a7e82dc9d7e161251a8c635155.tar.bz2 |
am 1ff358ad: am d217efb9: am 709941fd: Merge "Less intrusive VPN dialog and other UX tweaks." into lmp-dev
* commit '1ff358ad2a0b2c0702fde65ff68f4656e55c545f':
Less intrusive VPN dialog and other UX tweaks.
Diffstat (limited to 'packages/VpnDialogs/res')
-rw-r--r-- | packages/VpnDialogs/res/drawable-hdpi/ic_vpn_dialog.png | bin | 0 -> 943 bytes | |||
-rw-r--r-- | packages/VpnDialogs/res/drawable-mdpi/ic_vpn_dialog.png | bin | 0 -> 629 bytes | |||
-rw-r--r-- | packages/VpnDialogs/res/drawable-xhdpi/ic_vpn_dialog.png | bin | 0 -> 1035 bytes | |||
-rw-r--r-- | packages/VpnDialogs/res/drawable-xxhdpi/ic_vpn_dialog.png | bin | 0 -> 1257 bytes | |||
-rw-r--r-- | packages/VpnDialogs/res/drawable-xxxhdpi/ic_vpn_dialog.png | bin | 0 -> 1884 bytes | |||
-rw-r--r-- | packages/VpnDialogs/res/layout/confirm.xml | 43 | ||||
-rw-r--r-- | packages/VpnDialogs/res/layout/manage.xml | 45 | ||||
-rw-r--r-- | packages/VpnDialogs/res/values/strings.xml | 41 |
8 files changed, 15 insertions, 114 deletions
diff --git a/packages/VpnDialogs/res/drawable-hdpi/ic_vpn_dialog.png b/packages/VpnDialogs/res/drawable-hdpi/ic_vpn_dialog.png Binary files differnew file mode 100644 index 0000000..a0b4b61 --- /dev/null +++ b/packages/VpnDialogs/res/drawable-hdpi/ic_vpn_dialog.png diff --git a/packages/VpnDialogs/res/drawable-mdpi/ic_vpn_dialog.png b/packages/VpnDialogs/res/drawable-mdpi/ic_vpn_dialog.png Binary files differnew file mode 100644 index 0000000..df5dfe8 --- /dev/null +++ b/packages/VpnDialogs/res/drawable-mdpi/ic_vpn_dialog.png diff --git a/packages/VpnDialogs/res/drawable-xhdpi/ic_vpn_dialog.png b/packages/VpnDialogs/res/drawable-xhdpi/ic_vpn_dialog.png Binary files differnew file mode 100644 index 0000000..18d5a3a --- /dev/null +++ b/packages/VpnDialogs/res/drawable-xhdpi/ic_vpn_dialog.png diff --git a/packages/VpnDialogs/res/drawable-xxhdpi/ic_vpn_dialog.png b/packages/VpnDialogs/res/drawable-xxhdpi/ic_vpn_dialog.png Binary files differnew file mode 100644 index 0000000..4d475dc --- /dev/null +++ b/packages/VpnDialogs/res/drawable-xxhdpi/ic_vpn_dialog.png diff --git a/packages/VpnDialogs/res/drawable-xxxhdpi/ic_vpn_dialog.png b/packages/VpnDialogs/res/drawable-xxxhdpi/ic_vpn_dialog.png Binary files differnew file mode 100644 index 0000000..9d458b4 --- /dev/null +++ b/packages/VpnDialogs/res/drawable-xxxhdpi/ic_vpn_dialog.png diff --git a/packages/VpnDialogs/res/layout/confirm.xml b/packages/VpnDialogs/res/layout/confirm.xml index ee7f4b8..66fec59 100644 --- a/packages/VpnDialogs/res/layout/confirm.xml +++ b/packages/VpnDialogs/res/layout/confirm.xml @@ -18,41 +18,12 @@ <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"> - <LinearLayout android:layout_width="match_parent" + <TextView android:id="@+id/warning" + android:layout_width="fill_parent" android:layout_height="wrap_content" - android:orientation="vertical" - android:padding="3mm"> - - <LinearLayout android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="horizontal" - android:gravity="center_vertical"> - - <ImageView android:id="@+id/icon" - android:layout_width="@android:dimen/app_icon_size" - android:layout_height="@android:dimen/app_icon_size" - android:paddingRight="1mm"/> - - <TextView android:id="@+id/prompt" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:textSize="18sp"/> - </LinearLayout> - - <TextView android:id="@+id/warning" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:paddingTop="1mm" - android:paddingBottom="1mm" - android:text="@string/warning" - android:textSize="18sp"/> - - <CheckBox android:id="@+id/check" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:text="@string/accept" - android:textSize="20sp" - android:filterTouchesWhenObscured="true" - android:checked="false"/> - </LinearLayout> + android:textSize="18sp" + android:paddingTop="4mm" + android:paddingLeft="3mm" + android:paddingRight="3mm" + android:paddingBottom="4mm"/> </ScrollView> diff --git a/packages/VpnDialogs/res/layout/manage.xml b/packages/VpnDialogs/res/layout/manage.xml deleted file mode 100644 index 56332c3..0000000 --- a/packages/VpnDialogs/res/layout/manage.xml +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2011 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:padding="3mm" - android:stretchColumns="0,1" - android:shrinkColumns="1"> - - <TableRow> - <TextView android:text="@string/session" style="@style/label"/> - <TextView android:id="@+id/session" style="@style/value"/> - </TableRow> - - <TableRow> - <TextView android:text="@string/duration" style="@style/label"/> - <TextView android:id="@+id/duration" style="@style/value"/> - </TableRow> - - <TableRow android:id="@+id/data_transmitted_row" android:visibility="gone"> - <TextView android:text="@string/data_transmitted" style="@style/label"/> - <TextView android:id="@+id/data_transmitted" style="@style/value"/> - </TableRow> - - <TableRow android:id="@+id/data_received_row" android:visibility="gone"> - <TextView android:text="@string/data_received" style="@style/label"/> - <TextView android:id="@+id/data_received" style="@style/value"/> - </TableRow> - -</TableLayout> diff --git a/packages/VpnDialogs/res/values/strings.xml b/packages/VpnDialogs/res/values/strings.xml index 3ff767a..84206a1 100644 --- a/packages/VpnDialogs/res/values/strings.xml +++ b/packages/VpnDialogs/res/values/strings.xml @@ -17,40 +17,15 @@ <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <!-- Dialog title to identify the request from a VPN application. [CHAR LIMIT=60] --> - <string name="prompt"><xliff:g id="app">%s</xliff:g> - attempts to create a VPN connection. - </string> + <string name="prompt">Connection request</string> <!-- Dialog message to warn about the risk of using a VPN application. [CHAR LIMIT=NONE] --> - <string name="warning">By proceeding, you are giving the application - permission to intercept all network traffic. - <b>Do NOT accept unless you trust the application.</b> Otherwise, - you run the risk of having your data compromised by a malicious - software. - </string> - - <!-- Checkbox label to accept the request from a VPN application. [CHAR LIMIT=60] --> - <string name="accept">I trust this application.</string> - - <!-- Dialog title for built-in VPN. [CHAR LIMIT=40] --> - <string name="legacy_title">VPN is connected</string> - <!-- Button label to configure the current VPN session. [CHAR LIMIT=20] --> - <string name="configure">Configure</string> - <!-- Button label to disconnect the current VPN session. [CHAR LIMIT=20] --> - <string name="disconnect">Disconnect</string> - - <!-- Label for the name of the current VPN session. [CHAR LIMIT=20] --> - <string name="session">Session:</string> - <!-- Label for the duration of the current VPN session. [CHAR LIMIT=20] --> - <string name="duration">Duration:</string> - <!-- Label for the network usage of data transmitted over VPN. [CHAR LIMIT=20] --> - <string name="data_transmitted">Sent:</string> - <!-- Label for the network usage of data received over VPN. [CHAR LIMIT=20] --> - <string name="data_received">Received:</string> - - <!-- Formatted string for the network usage over VPN. [CHAR LIMIT=40] --> - <string name="data_value_format"> - <xliff:g id="number">%1$s</xliff:g> bytes / - <xliff:g id="number">%2$s</xliff:g> packets + <string name="warning"><xliff:g id="app">%s</xliff:g> wants to set up a VPN connection + that allows it to monitor network traffic. Only accept if you trust the source. + <![CDATA[ + <br /> + <br /> + <img src="vpn_icon" /> + ]]> appears at the top of your screen when VPN is active. </string> </resources> |