X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/bbd529289cbef2d9e5ffed19fb012417d5ece946..080a8ab7af2bc48e3c5fa1334ae91d21073e26c2:/src/com/owncloud/android/authentication/AuthenticatorActivity.java diff --git a/src/com/owncloud/android/authentication/AuthenticatorActivity.java b/src/com/owncloud/android/authentication/AuthenticatorActivity.java index 13fdb9eb..4173ca42 100644 --- a/src/com/owncloud/android/authentication/AuthenticatorActivity.java +++ b/src/com/owncloud/android/authentication/AuthenticatorActivity.java @@ -176,7 +176,6 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity private EditText mUsernameInput; private EditText mPasswordInput; private View mOkButton; - private View mCenteredRefreshButton; private TextView mAuthStatusView; private int mAuthStatusText = 0, mAuthStatusIcon = 0; @@ -251,7 +250,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity /// initialize general UI elements initOverallUi(); - + mOkButton = findViewById(R.id.buttonOK); mOkButton.setOnClickListener(new View.OnClickListener() { @@ -261,8 +260,15 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity } }); - mCenteredRefreshButton = findViewById(R.id.centeredRefreshButton); - mCenteredRefreshButton.setOnClickListener(new View.OnClickListener() { + findViewById(R.id.centeredRefreshButton).setOnClickListener(new View.OnClickListener() { + + @Override + public void onClick(View v) { + checkOcServer(); + } + }); + + findViewById(R.id.embeddedRefreshButton).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { @@ -1372,6 +1378,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity public void onAuthenticatorTaskCallback(RemoteOperationResult result) { mWaitingForOpId = Long.MAX_VALUE; dismissDialog(WAIT_DIALOG_TAG); + mAsyncTask = null; if (result.isSuccess()) { Log_OC.d(TAG, "Successful access - time to save the account");