From ff0803c3eead5a8b42b9a6f3fc4d351be076c081 Mon Sep 17 00:00:00 2001 From: "David A. Velasco" Date: Fri, 20 Jul 2012 12:27:05 +0200 Subject: [PATCH] Avoid crash in the login page when the connections is tested, then changed to other wrong URL and connect is clicked before the new test finishes --- AndroidManifest.xml | 2 +- src/eu/alefzero/owncloud/ui/activity/AuthenticatorActivity.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 94d1d37c95..212a806367 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -18,7 +18,7 @@ --> + android:versionName="0.1.169B" xmlns:android="http://schemas.android.com/apk/res/android"> diff --git a/src/eu/alefzero/owncloud/ui/activity/AuthenticatorActivity.java b/src/eu/alefzero/owncloud/ui/activity/AuthenticatorActivity.java index ab31a5d5e0..60f8c889aa 100644 --- a/src/eu/alefzero/owncloud/ui/activity/AuthenticatorActivity.java +++ b/src/eu/alefzero/owncloud/ui/activity/AuthenticatorActivity.java @@ -343,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);