mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 05:09:53 +01:00
Clear the password field if wrong password is entered
This commit is contained in:
@@ -47,6 +47,7 @@ public class PasswordActivity extends RoboActivity {
|
|||||||
|
|
||||||
@Inject @CryptoExecutor private Executor cryptoExecutor;
|
@Inject @CryptoExecutor private Executor cryptoExecutor;
|
||||||
private TextView enterPassword = null;
|
private TextView enterPassword = null;
|
||||||
|
private EditText passwordEntry = null;
|
||||||
private Button signInButton = null;
|
private Button signInButton = null;
|
||||||
private ProgressBar progress = null;
|
private ProgressBar progress = null;
|
||||||
|
|
||||||
@@ -86,7 +87,7 @@ public class PasswordActivity extends RoboActivity {
|
|||||||
enterPassword.setText(R.string.enter_password);
|
enterPassword.setText(R.string.enter_password);
|
||||||
layout.addView(enterPassword);
|
layout.addView(enterPassword);
|
||||||
|
|
||||||
final EditText passwordEntry = new EditText(this);
|
passwordEntry = new EditText(this);
|
||||||
passwordEntry.setId(1);
|
passwordEntry.setId(1);
|
||||||
passwordEntry.setMaxLines(1);
|
passwordEntry.setMaxLines(1);
|
||||||
int inputType = TYPE_CLASS_TEXT | TYPE_TEXT_VARIATION_PASSWORD;
|
int inputType = TYPE_CLASS_TEXT | TYPE_TEXT_VARIATION_PASSWORD;
|
||||||
@@ -152,6 +153,7 @@ public class PasswordActivity extends RoboActivity {
|
|||||||
runOnUiThread(new Runnable() {
|
runOnUiThread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
enterPassword.setText(R.string.try_again);
|
enterPassword.setText(R.string.try_again);
|
||||||
|
passwordEntry.setText("");
|
||||||
signInButton.setVisibility(VISIBLE);
|
signInButton.setVisibility(VISIBLE);
|
||||||
progress.setVisibility(GONE);
|
progress.setVisibility(GONE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user