diff options
author | Christian S <christian@pix-art.de> | 2016-04-22 21:54:59 +0200 |
---|---|---|
committer | Christian S <christian@pix-art.de> | 2016-04-22 21:54:59 +0200 |
commit | 8e37f416c7b9c319da41d8b2937621789ccfb272 (patch) | |
tree | 060d61cd63e93debec1c134e836408b6a2885e2d | |
parent | 268ed6d01518258bb445a2c7243f9562883da842 (diff) |
make password invisible in edit account view
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java index c9082f170..e8653a486 100644 --- a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java @@ -14,6 +14,7 @@ import android.security.KeyChain; import android.security.KeyChainAliasCallback; import android.text.Editable; import android.text.TextWatcher; +import android.text.method.PasswordTransformationMethod; import android.view.Menu; import android.view.MenuItem; import android.view.View; @@ -594,6 +595,9 @@ public class EditAccountActivity extends XmppActivity implements OnAccountUpdate this.mAccountJid.getEditableText().append(this.mAccount.getJid().toBareJid().toString()); } this.mPassword.setText(this.mAccount.getPassword()); + if (!mInitMode) { + this.mPassword.setTransformationMethod(PasswordTransformationMethod.getInstance()); + } this.mHostname.setText(""); this.mHostname.getEditableText().append(this.mAccount.getHostname()); this.mPort.setText(""); |