summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2021-04-09 17:20:50 +0200
committerArne Schwabe <arne@rfc2549.org>2021-04-09 17:20:50 +0200
commit8d0f9d2abadbfd516b105294720f379f77fd9877 (patch)
treedcd4befe97dd58e8ae6b82ec009cf14d2948c9a6
parent5387d827f16b0fb9cfa7cbda1f4d6d245eff3382 (diff)
Fix custom options in serverlist fragment (closes #1298)
-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) {