New password input

This commit is contained in:
Jeremy committed 2017-11-03 16:26:01 +01:00
1 parent 8e4b6ede35
commit 2ee09bb5b4
2 files changed
+36 -145

No files matched your search

@@ -89,7 +89,6 @@ public class PasswordActivity extends LockingActivity implements FingerPrintHelp
private boolean mRememberKeyfile;
SharedPreferences prefs;
private boolean isShowPasswordChecked = false;
private FingerPrintHelper fingerPrintHelper;
private int mode;
private static final String PREF_KEY_VALUE_PREFIX = "valueFor_"; // key is a combination of db file name and this prefix
@@ -676,23 +675,6 @@ public class PasswordActivity extends LockingActivity implements FingerPrintHelp
Button confirmButton = (Button) findViewById(R.id.pass_ok);
confirmButton.setOnClickListener(new OkClickHandler());
View showPasswordView = findViewById(R.id.show_password);
// Show or hide password
showPasswordView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
EditText password = (EditText) findViewById(R.id.password);
if ( isShowPasswordChecked ) {
password.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);
isShowPasswordChecked = false;
} else {
password.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
isShowPasswordChecked = true;
}
password.setSelection(password.getText().length());
}
});
if (password != null) {
TextView tv_password = (TextView) findViewById(R.id.password);
tv_password.setText(password);