View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000373 | MantisDroid | Defect | public | 2012-10-10 09:30 | 2012-10-10 20:52 |
Reporter | e7andy | Assigned To | e7andy | ||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Target Version | 1.0.2 | Fixed in Version | 1.0.2 | ||
Summary | 0000373: LoginActivity - Do not clear inputs onResume | ||||
Description | Input fields are cleared when the user switches between MantisDroid and other apps. Do not do that. | ||||
Tags | No tags attached. | ||||
|
@Override protected void onResume() { super.onResume(); readValuesFromPreferences(); if (successfulLoginHasBeenMade()) { continueToMainActivity(); } enableLoginButton(); if(isControlsEmpty()) { initControls(); } Intent intent = getIntent(); if (intent != null) { boolean autoLogin = intent.getBooleanExtra(MantisDroid.AUTOLOGIN, false); if (autoLogin) { loginButton.performClick(); } } } private boolean isControlsEmpty() { String username = usernameEdit.getText().toString(); String password = passwordEdit.getText().toString(); String mantisUrl = mantisUrlEdit.getText().toString(); String defaultMantisUrl = getResources().getString(R.string.default_mantis_url); if(username.isEmpty() && password.isEmpty() && (mantisUrl.isEmpty() || mantisUrl.contains(defaultMantisUrl))) { return true; } return false; } |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-10-10 09:30 | e7andy | New Issue | |
2012-10-10 09:30 | e7andy | Status | new => assigned |
2012-10-10 09:30 | e7andy | Assigned To | => e7andy |
2012-10-10 10:58 | e7andy | Note Added: 0000049 | |
2012-10-10 20:52 | e7andy | Status | assigned => closed |
2012-10-10 20:52 | e7andy | Resolution | open => fixed |
2012-10-10 20:52 | e7andy | Fixed in Version | => 1.0.2 |