make password invisible in edit account view

This commit is contained in:
Christian S 2016-04-22 21:54:59 +02:00
parent 268ed6d015
commit 8e37f416c7

View file

@ -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("");