X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/435b31ba4f3597cc7a43270cd4a54fb0180956c1..a032bdeebc51a6e81d1bd5c558944f96fc55eacb:/src/eu/alefzero/owncloud/ui/activity/AuthenticatorActivity.java diff --git a/src/eu/alefzero/owncloud/ui/activity/AuthenticatorActivity.java b/src/eu/alefzero/owncloud/ui/activity/AuthenticatorActivity.java index 77490eba..60f8c889 100644 --- a/src/eu/alefzero/owncloud/ui/activity/AuthenticatorActivity.java +++ b/src/eu/alefzero/owncloud/ui/activity/AuthenticatorActivity.java @@ -204,8 +204,9 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity setResult(RESULT_OK, intent); Bundle bundle = new Bundle(); bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); - getContentResolver().startSync(ProviderTableMeta.CONTENT_URI, - bundle); + //getContentResolver().startSync(ProviderTableMeta.CONTENT_URI, + // bundle); + ContentResolver.requestSync(account, "org.owncloud", bundle); /* * if @@ -221,7 +222,10 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity tv.setError(message); } } - + public void onCancelClick(View view) { + finish(); + } + public void onOkClick(View view) { String prefix = ""; String url = ((TextView) findViewById(R.id.host_URL)).getText() @@ -339,6 +343,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity if (uri.length() != 0) { setResultIconAndText(R.drawable.progress_small, R.string.auth_testing_connection); + findViewById(R.id.buttonOK).setEnabled(false); // avoid connect can be clicked if the test was previously passed mConnChkRunnable = new ConnectionCheckerRunnable(uri, this); mConnChkRunnable.setListener(this, mHandler); mAuthThread = new Thread(mConnChkRunnable);