Browse Source

make cancel button usable on account create activity

Bartek Przybylski 13 years ago
parent
commit
832c1f4842

+ 1 - 1
AndroidManifest.xml

@@ -18,7 +18,7 @@
  -->
 <manifest package="eu.alefzero.owncloud"
     android:versionCode="1"
-    android:versionName="0.1.123B" xmlns:android="http://schemas.android.com/apk/res/android">
+    android:versionName="0.1.124B" xmlns:android="http://schemas.android.com/apk/res/android">
 
     <uses-permission android:name="android.permission.GET_ACCOUNTS" />
     <uses-permission android:name="android.permission.USE_CREDENTIALS" />

+ 1 - 0
res/layout/account_setup.xml

@@ -159,6 +159,7 @@
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:layout_weight=".5"
+                android:onClick="onCancelClick"
                 android:text="@string/common_cancel" />
 
             <Button

+ 4 - 1
src/eu/alefzero/owncloud/ui/activity/AuthenticatorActivity.java

@@ -221,7 +221,10 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
             tv.setError(message);
         }
     }
-
+    public void onCancelClick(View view) {
+        finish();
+    }
+    
     public void onOkClick(View view) {
         String prefix = "";
         String url = ((TextView) findViewById(R.id.host_URL)).getText()