From 8e37f416c7b9c319da41d8b2937621789ccfb272 Mon Sep 17 00:00:00 2001 From: Christian S Date: Fri, 22 Apr 2016 21:54:59 +0200 Subject: make password invisible in edit account view --- src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java | 4 ++++ 1 file changed, 4 insertions(+) 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(""); -- cgit v1.2.3