diff options
author | Arne Schwabe <arne@rfc2549.org> | 2021-04-09 17:20:50 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2021-04-09 17:20:50 +0200 |
commit | 8d0f9d2abadbfd516b105294720f379f77fd9877 (patch) | |
tree | dcd4befe97dd58e8ae6b82ec009cf14d2948c9a6 /main/src/ui/java/de | |
parent | 5387d827f16b0fb9cfa7cbda1f4d6d245eff3382 (diff) |
Fix custom options in serverlist fragment (closes #1298)
Diffstat (limited to 'main/src/ui/java/de')
-rw-r--r-- | main/src/ui/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java | 11 |
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) { |