mDiscoveredVersion = operation.getDiscoveredVersion();\r
mHostBaseUrl = normalizeUrl(mHostUrlInput.getText().toString());\r
\r
+ // Refresh server status, but don't show it\r
+ updateServerStatusIconAndText(result);\r
+ \r
/// update status icon and text\r
if (mServerIsValid) {\r
hideRefreshButton();\r
tryEmptyAuthorization();\r
} else {\r
showRefreshButton();\r
+ // Show server status\r
+ showServerStatus();\r
}\r
- updateServerStatusIconAndText(result);\r
- showServerStatus();\r
\r
/// very special case (TODO: move to a common place for all the remote operations)\r
if (result.getCode() == ResultCode.SSL_RECOVERABLE_PEER_UNVERIFIED) {\r
\r
\r
private void updateStatusIconFailUserName(){\r
- mAuthStatusIcon = android.R.drawable.ic_secure;\r
+ mAuthStatusIcon = R.drawable.common_error;\r
mAuthStatusText = R.string.auth_fail_get_user_name;\r
}\r
\r
private void updateServerStatusIconNoRegularAuth(){\r
- mServerStatusIcon = android.R.drawable.ic_secure;\r
+ mServerStatusIcon = R.drawable.common_error;\r
mServerStatusText = R.string.auth_unsupported_auth_method;\r
}\r
\r
mOkButton.setEnabled(false);\r
mTryEmptyAuthorization = false;\r
mServerIsValid = false;\r
- //show an alert message\r
+ //show an alert message ( Server Status )\r
updateServerStatusIconNoRegularAuth();\r
showServerStatus();\r
\r
if (mTryEmptyAuthorization) {\r
mTryEmptyAuthorization = false;\r
mOkButton.setEnabled(true);\r
-\r
+ \r
+ // Show server status\r
+ showServerStatus();\r
+ \r
} else if (result.isServerFail() || result.isException()) {\r
/// if server fail or exception in authorization, the UI is updated as when a server check failed\r
mServerIsChecked = true;\r