summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2020-04-23 13:31:39 +0200
committerArne Schwabe <arne@rfc2549.org>2020-04-23 13:31:39 +0200
commitd06a8e53f4b368f8d9bb10abbbb5a644d49dc294 (patch)
tree8f830802538ea6867e1458f5cf552daa02a278f1
parent1fdd2e2eca780ef1449d731f4abb33a335dd3e51 (diff)
Also hide proxy port when hiding proxy options (closes #1176)
-rw-r--r--main/src/ui/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/src/ui/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java b/main/src/ui/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java
index 28689368..4627a61e 100644
--- a/main/src/ui/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java
+++ b/main/src/ui/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java
@@ -112,10 +112,12 @@ public class ConnectionsAdapter extends RecyclerView.Adapter<ConnectionsAdapter.
cH.mProxyNameView.setVisibility(visible);
cH.mProxyPortNumberView.setVisibility(visible);
+ cH.mProxyPortNameView.setVisibility(visible);
cH.mProxyNameLabel.setVisibility(visible);
cH.mProxyAuthLayout.setVisibility(authVisible);
+
}
private void removeRemote(int idx) {
@@ -187,6 +189,7 @@ public class ConnectionsAdapter extends RecyclerView.Adapter<ConnectionsAdapter.
private final RadioGroup mProxyGroup;
private final EditText mProxyNameView;
private final EditText mProxyPortNumberView;
+ private final View mProxyPortNameView;
private final View mProxyNameLabel;
private final View mProxyAuthLayout;
private final EditText mProxyAuthUser;
@@ -212,6 +215,7 @@ public class ConnectionsAdapter extends RecyclerView.Adapter<ConnectionsAdapter.
mProxyGroup = card.findViewById(R.id.proxyradiogroup);
mProxyNameView = card.findViewById(R.id.proxyname);
mProxyPortNumberView = card.findViewById(R.id.proxyport);
+ mProxyPortNameView = card.findViewById(R.id.proxyport_label);
mProxyNameLabel = card.findViewById(R.id.proxyserver_label);
mProxyAuthLayout = card.findViewById(R.id.proxyauthlayout);