From 9f0928c6593f937a17b7974b04051c57e3874b20 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Thu, 12 Feb 2015 22:22:25 +0100 Subject: Update OpenSSL to AOSP -master --- .../openvpn/fragments/Settings_Allowed_Apps.java | 6 +++--- main/src/main/res/layout/file_dialog_row.xml | 18 +++++++++--------- main/src/main/res/layout/server_card.xml | 7 ++++--- main/src/main/res/values/strings.xml | 3 +++ 4 files changed, 19 insertions(+), 15 deletions(-) (limited to 'main/src') diff --git a/main/src/main/java/de/blinkt/openvpn/fragments/Settings_Allowed_Apps.java b/main/src/main/java/de/blinkt/openvpn/fragments/Settings_Allowed_Apps.java index d02dfd47..a1635d54 100644 --- a/main/src/main/java/de/blinkt/openvpn/fragments/Settings_Allowed_Apps.java +++ b/main/src/main/java/de/blinkt/openvpn/fragments/Settings_Allowed_Apps.java @@ -56,9 +56,9 @@ public class Settings_Allowed_Apps extends Fragment implements AdapterView.OnIte //public TextView disabled; public CompoundButton checkBox; - static public AppViewHolder createOrRecycle(LayoutInflater inflater, View convertView) { + static public AppViewHolder createOrRecycle(LayoutInflater inflater, View convertView, ViewGroup parent) { if (convertView == null) { - convertView = inflater.inflate(R.layout.allowed_application_layout, null); + convertView = inflater.inflate(R.layout.allowed_application_layout, parent, false); // Creates a ViewHolder and store references to the two children views // we want to bind data to. @@ -151,7 +151,7 @@ public class Settings_Allowed_Apps extends Fragment implements AdapterView.OnIte @Override public View getView(int position, View convertView, ViewGroup parent) { - AppViewHolder viewHolder = AppViewHolder.createOrRecycle(mInflater, convertView); + AppViewHolder viewHolder = AppViewHolder.createOrRecycle(mInflater, convertView ,parent); convertView = viewHolder.rootView; viewHolder.mInfo = mPackages.get(position); final ApplicationInfo mInfo = mPackages.get(position); diff --git a/main/src/main/res/layout/file_dialog_row.xml b/main/src/main/res/layout/file_dialog_row.xml index 584b26c3..bca67776 100644 --- a/main/src/main/res/layout/file_dialog_row.xml +++ b/main/src/main/res/layout/file_dialog_row.xml @@ -4,15 +4,17 @@ ~ Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt --> - + @@ -20,12 +22,10 @@ android:id="@+id/fdrowtext" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignBottom="@+id/fdrowimage" - android:layout_alignTop="@+id/fdrowimage" - android:layout_toRightOf="@+id/fdrowimage" android:gravity="center_vertical" - android:text="@+id/fdrowtext" + android:layout_gravity="center_vertical" + tools:text="foo, die datei," android:textAppearance="?android:attr/textAppearanceMedium" /> - \ No newline at end of file + \ No newline at end of file diff --git a/main/src/main/res/layout/server_card.xml b/main/src/main/res/layout/server_card.xml index 1f59a99f..690a27bd 100644 --- a/main/src/main/res/layout/server_card.xml +++ b/main/src/main/res/layout/server_card.xml @@ -153,7 +153,7 @@ android:layout_height="wrap_content" android:layout_below="@id/udptcpradiogroup" android:id="@+id/use_customoptions" - android:text="Custom Options" /> + android:text="@string/custom_connection_options" /> @@ -195,7 +195,8 @@ android:layout_alignEnd="@+id/portnumber" android:layout_below="@id/remoteSwitch" android:background="@drawable/ic_menu_delete_grey" - android:id="@+id/remove_connection" /> + android:id="@+id/remove_connection" + android:contentDescription="@string/remove_connection_entry" /> diff --git a/main/src/main/res/values/strings.xml b/main/src/main/res/values/strings.xml index a223ed04..2a694da1 100755 --- a/main/src/main/res/values/strings.xml +++ b/main/src/main/res/values/strings.xml @@ -369,5 +369,8 @@ Route to the configured IP address Wrong MSS value for VPN connection Secondary tablet users + Specify custom connection specific options. Use with care + Custom Options + Remove connection entry -- cgit v1.2.3