From 233cb40aec40b44452533f2a8d66ddfcd9e890bf Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 9 Oct 2015 12:20:57 +0200 Subject: Fix connection list (closes #398) --- .../openvpn/fragments/ConnectionsAdapter.java | 147 +++++++++++++++------ .../openvpn/fragments/Settings_Connections.java | 6 +- main/src/main/res/layout/connections.xml | 3 +- main/src/main/res/layout/server_card.xml | 23 +++- main/src/main/res/values/strings.xml | 2 + 5 files changed, 130 insertions(+), 51 deletions(-) (limited to 'main/src') diff --git a/main/src/main/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java b/main/src/main/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java index c0bda8d1..74c103f8 100644 --- a/main/src/main/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java +++ b/main/src/main/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java @@ -28,9 +28,6 @@ import de.blinkt.openvpn.R; import de.blinkt.openvpn.VpnProfile; import de.blinkt.openvpn.core.Connection; -/** - * Created by arne on 30.10.14. - */ public class ConnectionsAdapter extends RecyclerView.Adapter { private final Context mContext; private final VpnProfile mProfile; @@ -58,8 +55,10 @@ public class ConnectionsAdapter extends RecyclerView.Adapter + tools:visibility="visible" /> diff --git a/main/src/main/res/layout/server_card.xml b/main/src/main/res/layout/server_card.xml index bad9a3c6..e3ebdf98 100644 --- a/main/src/main/res/layout/server_card.xml +++ b/main/src/main/res/layout/server_card.xml @@ -38,6 +38,8 @@ + android:textAppearance="@android:style/TextAppearance.DeviceDefault.Medium" + tools:ignore="HardcodedText" /> + android:textAppearance="@android:style/TextAppearance.DeviceDefault.Medium" + tools:ignore="HardcodedText" /> + android:text="@string/protocol" /> + android:text="UDP" + tools:ignore="HardcodedText" /> + android:text="TCP" + tools:ignore="HardcodedText" /> @@ -189,6 +198,8 @@ android:layout_height="wrap_content" android:layout_below="@id/use_customoptions" android:orientation="vertical" + android:paddingRight="10dp" + android:paddingEnd="10dp" android:paddingLeft="10dp" android:paddingStart="10dp"> @@ -214,7 +225,7 @@ android:layout_alignRight="@+id/portnumber" android:layout_below="@+id/portnumber" android:layout_gravity="right|bottom" - android:text="Enable" /> + android:text="@string/enabled_connection_entry" /> Connect Timeout No allowed app app added. Addding ourselves (%s) to have at least one app in the allowed app list to not allow all apps OpenVPN for Android can try to discover the missing file(s) on the sdcard automatically. Tap this message start the permission request. + Protocol + Enabled -- cgit v1.2.3