Avoid crash in the login page when the connections is tested, then changed to other...
authorDavid A. Velasco <dvelasco@solidgear.es>
Fri, 20 Jul 2012 10:27:05 +0000 (12:27 +0200)
committerDavid A. Velasco <dvelasco@solidgear.es>
Fri, 20 Jul 2012 10:27:05 +0000 (12:27 +0200)
AndroidManifest.xml
src/eu/alefzero/owncloud/ui/activity/AuthenticatorActivity.java

index 94d1d37..212a806 100644 (file)
@@ -18,7 +18,7 @@
  -->\r
 <manifest package="eu.alefzero.owncloud"\r
     android:versionCode="1"\r
-    android:versionName="0.1.168B" xmlns:android="http://schemas.android.com/apk/res/android">\r
+    android:versionName="0.1.169B" xmlns:android="http://schemas.android.com/apk/res/android">\r
 \r
     <uses-permission android:name="android.permission.GET_ACCOUNTS" />\r
     <uses-permission android:name="android.permission.USE_CREDENTIALS" />\r
index ab31a5d..60f8c88 100644 (file)
@@ -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