summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/src/ui/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java11
1 files changed, 3 insertions, 8 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 4627a61e..0e36a133 100644
--- a/main/src/ui/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java
+++ b/main/src/ui/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java
@@ -196,7 +196,7 @@ public class ConnectionsAdapter extends RecyclerView.Adapter<ConnectionsAdapter.
private final EditText mProxyAuthPassword;
private final CheckBox mProxyAuthCb;
- private Connection mConnection; // Set to null on update
+ protected Connection mConnection; // Set to null on update
ConnectionsHolder(View card, ConnectionsAdapter connectionsAdapter, int viewType) {
@@ -283,6 +283,7 @@ public class ConnectionsAdapter extends RecyclerView.Adapter<ConnectionsAdapter.
}
});
+
mCustomOptionCB.setOnCheckedChangeListener((buttonView, isChecked) -> {
if (mConnection != null) {
mConnection.mUseCustomConfig = isChecked;
@@ -329,13 +330,7 @@ public class ConnectionsAdapter extends RecyclerView.Adapter<ConnectionsAdapter.
}
});
- mCustomOptionCB.setOnCheckedChangeListener((buttonView, isChecked) -> {
- if (mConnection != null) {
- mConnection.mUseProxyAuth = isChecked;
- }
- });
-
- mProxyAuthPassword.addTextChangedListener(new OnTextChangedWatcher() {
+ mProxyAuthPassword.addTextChangedListener(new OnTextChangedWatcher() {
@Override
public void afterTextChanged(Editable s) {
if (mConnection != null) {