Bug 717707 - When screen hibernates, all credentials typed in classic mode disappear. r=rnewman

This commit is contained in:
Chenxia Liu 2012-06-05 19:35:24 -04:00
parent 97b3fcb768
commit 01a5c16cc5

View File

@ -98,19 +98,19 @@ public class AccountActivity extends AccountAuthenticatorActivity {
}
@Override
public void onStart() {
super.onStart();
// Start with an empty form
usernameInput.setText("");
passwordInput.setText("");
synckeyInput.setText("");
passwordInput.setText("");
public void onResume() {
super.onResume();
clearCredentials();
}
public void cancelClickHandler(View target) {
finish();
}
private void clearCredentials() {
// Only clear password. Re-typing the sync key or email is annoying.
passwordInput.setText("");
}
/*
* Get credentials on "Connect" and write to AccountManager, where it can be
* accessed by Fennec and Sync Service.