make cancel button usable on account create activity
authorBartek Przybylski <bart.p.pl@gmail.com>
Thu, 21 Jun 2012 18:02:33 +0000 (20:02 +0200)
committerBartek Przybylski <bart.p.pl@gmail.com>
Thu, 21 Jun 2012 18:02:33 +0000 (20:02 +0200)
AndroidManifest.xml
res/layout/account_setup.xml
src/eu/alefzero/owncloud/ui/activity/AuthenticatorActivity.java

index a7ef3d0..13e401d 100644 (file)
@@ -18,7 +18,7 @@
  -->\r
 <manifest package="eu.alefzero.owncloud"\r
     android:versionCode="1"\r
-    android:versionName="0.1.123B" xmlns:android="http://schemas.android.com/apk/res/android">\r
+    android:versionName="0.1.124B" 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 1a9e281..add258c 100644 (file)
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:layout_weight=".5"
+                android:onClick="onCancelClick"
                 android:text="@string/common_cancel" />
 
             <Button
index 77490eb..bd0ddb0 100644 (file)
@@ -221,7 +221,10 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
             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