import android.os.Bundle;\r
import android.os.Handler;\r
import android.preference.PreferenceManager;\r
-import android.support.v4.app.DialogFragment;\r
import android.support.v4.app.Fragment;\r
import android.support.v4.app.FragmentManager;\r
import android.support.v4.app.FragmentTransaction;\r
import com.owncloud.android.lib.common.operations.RemoteOperationResult.ResultCode;\r
import com.owncloud.android.lib.resources.files.ExistenceCheckRemoteOperation;\r
import com.owncloud.android.lib.resources.users.GetRemoteUserNameOperation;\r
-
-import com.owncloud.android.ui.dialog.AlertMessageDialog;\r
+\r
import com.owncloud.android.ui.dialog.SamlWebViewDialog;\r
import com.owncloud.android.ui.dialog.SslUntrustedCertDialog;\r
import com.owncloud.android.ui.dialog.SslUntrustedCertDialog.OnSslUntrustedCertListener;\r
public static final byte ACTION_UPDATE_TOKEN = 1;\r
\r
private static final String TAG_SAML_DIALOG = "samlWebViewDialog";\r
- private static final String TAG_ALERT_MESSAGE_DIALOG = "alertMessagewDialog";\r
\r
private String mHostBaseUrl;\r
private OwnCloudVersion mDiscoveredVersion;\r
\r
Log_OC.d(TAG, "Trying empty authorization to detect authentication method");\r
\r
- /// be gentle with the user\r
- showDialog(DIALOG_LOGIN_PROGRESS);\r
- \r
/// get the path to the root folder through WebDAV from the version server\r
String webdav_path = AccountUtils.getWebdavPath(mDiscoveredVersion, mAuthTokenType);\r
\r
mAuthStatusText = R.string.auth_fail_get_user_name;\r
}\r
\r
+ private void updateServerStatusIconNoRegularAuth(){\r
+ mServerStatusIcon = android.R.drawable.ic_secure;\r
+ mServerStatusText = R.string.auth_unsupported_auth_method;\r
+ }\r
+ \r
/**\r
* Processes the result of the request for and access token send \r
* to an OAuth authorization server.\r
mOkButton.setEnabled(false);\r
mTryEmptyAuthorization = false;\r
mServerIsValid = false;\r
- //show an alert message\r
- showAlertMessageDialog(R.string.common_alert_title, R.string.auth_unsupported_auth_method);\r
+ //show an alert message\r
+ updateServerStatusIconNoRegularAuth();\r
+ showServerStatus();\r
\r
} else {\r
Log_OC.d(TAG, "Successful access - time to save the account");\r
}\r
\r
}\r
- \r
- private void showAlertMessageDialog(int tittle, int message) {\r
- DialogFragment newAlertMessage = AlertMessageDialog.newInstance(tittle, message);\r
- newAlertMessage.show(getSupportFragmentManager(), TAG_ALERT_MESSAGE_DIALOG);\r
- }\r
\r
}\r