mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 717707 - When screen hibernates, all credentials typed in classic mode disappear. r=rnewman
This commit is contained in:
parent
97b3fcb768
commit
01a5c16cc5
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user