setResult(RESULT_OK, intent);\r
Bundle bundle = new Bundle();\r
bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);\r
- getContentResolver().startSync(ProviderTableMeta.CONTENT_URI,\r
- bundle);\r
+ //getContentResolver().startSync(ProviderTableMeta.CONTENT_URI,\r
+ // bundle);\r
+ ContentResolver.requestSync(account, "org.owncloud", bundle);\r
\r
/*\r
* if\r
tv.setError(message);\r
}\r
}\r
-\r
+ public void onCancelClick(View view) {\r
+ finish();\r
+ }\r
+ \r
public void onOkClick(View view) {\r
String prefix = "";\r
String url = ((TextView) findViewById(R.id.host_URL)).getText()\r
if (uri.length() != 0) {\r
setResultIconAndText(R.drawable.progress_small,\r
R.string.auth_testing_connection);\r
+ findViewById(R.id.buttonOK).setEnabled(false); // avoid connect can be clicked if the test was previously passed\r
mConnChkRunnable = new ConnectionCheckerRunnable(uri, this);\r
mConnChkRunnable.setListener(this, mHandler);\r
mAuthThread = new Thread(mConnChkRunnable);\r