|
@@ -85,6 +85,7 @@ import com.owncloud.android.ui.dialog.IndeterminateProgressDialog;
|
|
import com.owncloud.android.ui.dialog.SamlWebViewDialog;
|
|
import com.owncloud.android.ui.dialog.SamlWebViewDialog;
|
|
import com.owncloud.android.ui.dialog.SslUntrustedCertDialog;
|
|
import com.owncloud.android.ui.dialog.SslUntrustedCertDialog;
|
|
import com.owncloud.android.ui.dialog.SslUntrustedCertDialog.OnSslUntrustedCertListener;
|
|
import com.owncloud.android.ui.dialog.SslUntrustedCertDialog.OnSslUntrustedCertListener;
|
|
|
|
+import com.owncloud.android.utils.DisplayUtils;
|
|
|
|
|
|
/**
|
|
/**
|
|
* This Activity is used to add an ownCloud account to the App
|
|
* This Activity is used to add an ownCloud account to the App
|
|
@@ -356,7 +357,8 @@ SsoWebViewClientListener, OnSslUntrustedCertListener {
|
|
|
|
|
|
/// step 2 - set properties of UI elements (text, visibility, enabled...)
|
|
/// step 2 - set properties of UI elements (text, visibility, enabled...)
|
|
mHostUrlInput = (EditText) findViewById(R.id.hostUrlInput);
|
|
mHostUrlInput = (EditText) findViewById(R.id.hostUrlInput);
|
|
- mHostUrlInput.setText(mServerInfo.mBaseUrl);
|
|
|
|
|
|
+ // Convert IDN to Unicode
|
|
|
|
+ mHostUrlInput.setText(DisplayUtils.convertIdn(mServerInfo.mBaseUrl, false));
|
|
if (mAction != ACTION_CREATE) {
|
|
if (mAction != ACTION_CREATE) {
|
|
/// lock things that should not change
|
|
/// lock things that should not change
|
|
mHostUrlInput.setEnabled(false);
|
|
mHostUrlInput.setEnabled(false);
|
|
@@ -737,6 +739,8 @@ SsoWebViewClientListener, OnSslUntrustedCertListener {
|
|
showRefreshButton(false);
|
|
showRefreshButton(false);
|
|
|
|
|
|
if (uri.length() != 0) {
|
|
if (uri.length() != 0) {
|
|
|
|
+ // Handle internationalized domain names
|
|
|
|
+ uri = DisplayUtils.convertIdn(uri, true);
|
|
mServerStatusText = R.string.auth_testing_connection;
|
|
mServerStatusText = R.string.auth_testing_connection;
|
|
mServerStatusIcon = R.drawable.progress_small;
|
|
mServerStatusIcon = R.drawable.progress_small;
|
|
showServerStatus();
|
|
showServerStatus();
|