From 82b4620de9f7ea10c61c0825cd157ee4729cfbec Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Wed, 5 Aug 2015 10:56:05 +0200 Subject: Add empty footer in server list (closes #379) --- .../openvpn/fragments/ConnectionsAdapter.java | 74 ++++++++++++++-------- main/src/main/res/layout/server_footer.xml | 13 ++++ 2 files changed, 60 insertions(+), 27 deletions(-) create mode 100644 main/src/main/res/layout/server_footer.xml 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 34fc09ed..14c089f5 100644 --- a/main/src/main/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java +++ b/main/src/main/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java @@ -30,14 +30,16 @@ import de.blinkt.openvpn.core.Connection; /** * Created by arne on 30.10.14. */ -public class ConnectionsAdapter extends RecyclerView.Adapter { +public class ConnectionsAdapter extends RecyclerView.Adapter { private final Context mContext; private final VpnProfile mProfile; private final Settings_Connections mConnectionFragment; private Connection[] mConnections; - public ConnectionsAdapter(Context c, Settings_Connections connections_fragments, VpnProfile vpnProfile) - { + private static final int TYPE_NORMAL = 0; + private static final int TYPE_FOOTER = TYPE_NORMAL + 1; + + public ConnectionsAdapter(Context c, Settings_Connections connections_fragments, VpnProfile vpnProfile) { mContext = c; mConnections = vpnProfile.mConnections; mProfile = vpnProfile; @@ -58,7 +60,7 @@ public class ConnectionsAdapter extends RecyclerView.Adapter + + + + + \ No newline at end of file -- cgit v1.2.3