Skip to content

Commit

Permalink
Merge branch 'proxy_password' into 'master'
Browse files Browse the repository at this point in the history
Fix ProxySettingsFragment crash

See merge request proninyaroslav/libretorrent!202
  • Loading branch information
proninyaroslav committed Mar 22, 2023
2 parents 683101f + cf7c3f8 commit 73f735b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import android.os.Bundle;
import android.text.InputFilter;
import android.text.TextUtils;
import android.text.method.PasswordTransformationMethod;
import android.view.View;
import android.widget.Toast;

Expand Down Expand Up @@ -161,9 +162,8 @@ public void onCreate(Bundle savedInstanceState)
if (password != null) {
String passwordValue = pref.proxyPassword();
password.setText(passwordValue);
password.setOnBindEditTextListener((editText) -> password.setSummary(editText
.getTransformationMethod()
.getTransformation(passwordValue, editText).toString()));
password.setOnBindEditTextListener(editText -> editText.setTransformationMethod(
PasswordTransformationMethod.getInstance()));
bindOnPreferenceChangeListener(password);
}
}
Expand Down

0 comments on commit 73f735b

Please sign in to comment.