Skip to content
Snippets Groups Projects
Commit d11e7e96 authored by akwizgran's avatar akwizgran
Browse files

Merge branch '150-clear-password-field' into 'master'

Clear the password field if wrong password is entered

Closes #150

See merge request !1
parents 061479dd ceef3159
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,7 @@ public class PasswordActivity extends RoboActivity {
@Inject @CryptoExecutor private Executor cryptoExecutor;
private TextView enterPassword = null;
private EditText passwordEntry = null;
private Button signInButton = null;
private ProgressBar progress = null;
......@@ -86,7 +87,7 @@ public class PasswordActivity extends RoboActivity {
enterPassword.setText(R.string.enter_password);
layout.addView(enterPassword);
final EditText passwordEntry = new EditText(this);
passwordEntry = new EditText(this);
passwordEntry.setId(1);
passwordEntry.setMaxLines(1);
int inputType = TYPE_CLASS_TEXT | TYPE_TEXT_VARIATION_PASSWORD;
......@@ -152,6 +153,7 @@ public class PasswordActivity extends RoboActivity {
runOnUiThread(new Runnable() {
public void run() {
enterPassword.setText(R.string.try_again);
passwordEntry.setText("");
signInButton.setVisibility(VISIBLE);
progress.setVisibility(GONE);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment