Quick patch to fix operations not ready for HTTPS
[pub/Android/ownCloud.git] / src / eu / alefzero / owncloud / ui / activity / AuthenticatorActivity.java
index b944240..60f8c88 100644 (file)
@@ -206,7 +206,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
             bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);\r
             //getContentResolver().startSync(ProviderTableMeta.CONTENT_URI,\r
             //        bundle);\r
-            ContentResolver.requestSync(account, "org.ownlcoud", bundle);\r
+            ContentResolver.requestSync(account, "org.owncloud", bundle);\r
 \r
             /*\r
              * if\r
@@ -343,6 +343,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
                 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