Merge branch 'material_toolbar' of https://github.com/owncloud/android into material_...
authorAndy Scherzinger <info@andy-scherzinger.de>
Thu, 13 Aug 2015 13:57:38 +0000 (15:57 +0200)
committerAndy Scherzinger <info@andy-scherzinger.de>
Thu, 13 Aug 2015 13:57:38 +0000 (15:57 +0200)
Conflicts:
res/layout/ssl_untrusted_cert_layout.xml
res/layout/ssl_validator_layout.xml

SETUP.md
res/layout/ssl_untrusted_cert_layout.xml
res/layout/ssl_validator_layout.xml
res/values-de-rDE/strings.xml
res/values-de/strings.xml
res/values/strings.xml
res/values/styles.xml
src/com/owncloud/android/ui/dialog/RemoveFileDialogFragment.java

index 4f9cef9..59a51ca 100644 (file)
--- a/SETUP.md
+++ b/SETUP.md
@@ -18,8 +18,8 @@ Open a terminal and type 'android' to start the Android SDK Manager. To build th
 
 * Android SDK Tools and Android SDK Platform-tools (already installed); upgrade to their last versions is usually a good idea.
 * Android SDK Build-Tools; any version from 20 or later should work fine; avoid preview versions, if any available.
-* Android 4.4.2 (API 19), SDK Platform; needed to build the ownCloud app.
-* Android 4.1.2 (API 16), SDK Platform; needed to build the Android Support Library (not neeeded if working with Android Studio or gradle).
+* Android 4.4.2 (API 19), SDK Platform; needed for build/test ownCloud app.
+* Android 5.1.1 (API 22), SDK Platform; needed to build the Android Support Library (not neeeded if working with Android Studio or gradle) and build the owncloud app.
 
 Install any other package you consider interesting, such as emulators.
 
@@ -105,8 +105,8 @@ The generated APK file is saved in android/build/outputs/apk as android-debug.ap
 ** owncloud-android
 * If any error on those projects persists, check the project properties. In the 'Android' section, API Level should be
 ** ownCloud Android Library    -> API level 19
-** android-support-appcompat-v7-exploded-aa -> API level 16
-** owncloud-android    -> API level 19 ; in this project, two library projects should appear referred in the bottom of the dialog: libs\android-support-appcompat-v7-exploded-aar and owncloud-android-library. Add them if needed.
+** android-support-appcompat-v7-exploded-aa -> API level 22
+** owncloud-android    -> API level 22 ; in this project, two library projects should appear referred in the bottom of the dialog: libs\android-support-appcompat-v7-exploded-aar and owncloud-android-library. Add them if needed.
 * After those actions you should be good to go. HAVE FUN!
 
 
@@ -139,7 +139,7 @@ Download/install Android plugin for Maven, then build ownCloud with mvn:
 * cd ..
 * git clone https://github.com/mosabua/maven-android-sdk-deployer.git
 * cd maven-android-sdk-deployer
-* mvn -pl com.simpligility.android.sdk-deployer:android-19 -am install
+* mvn -pl com.simpligility.android.sdk-deployer:android-22 -am install
 * cd ../android/owncloud-android-library
 * mvn install
 * cd ..
index 7712342..8ef7b13 100644 (file)
@@ -21,7 +21,7 @@
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:gravity="center"
-       android:padding="@dimen/standard_padding"
+       android:padding="16dp"
     android:orientation="vertical" >
 
        <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="0"
-               android:paddingBottom="@dimen/standard_padding"
+               android:paddingBottom="16dp"
                android:text="@string/ssl_validator_header"
                android:textAppearance="?android:attr/textAppearanceMedium"
+               android:textColor="@android:color/black"
                 />
     
        <TextView
@@ -40,7 +41,7 @@
                android:layout_height="wrap_content"
                android:layout_weight="0"
                android:layout_gravity="left"
-               android:paddingLeft="20dp"
+               android:paddingLeft="8dp"
                android:text="@string/ssl_validator_reason_cert_not_trusted"
                android:textAppearance="?android:attr/textAppearanceSmall"
                 />
@@ -51,7 +52,7 @@
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="left"
-               android:paddingLeft="20dp"
+               android:paddingLeft="8dp"
                android:text="@string/ssl_validator_reason_cert_expired"
                android:textAppearance="?android:attr/textAppearanceSmall"
                 />
@@ -61,7 +62,7 @@
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="left"
-               android:paddingLeft="20dp"
+               android:paddingLeft="8dp"
                android:text="@string/ssl_validator_reason_cert_not_yet_valid"
                android:textAppearance="?android:attr/textAppearanceSmall"
                 />
@@ -71,7 +72,7 @@
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="left"
-               android:paddingLeft="20dp"
+               android:paddingLeft="8dp"
                android:text="@string/ssl_validator_reason_hostname_not_verified"
                android:textAppearance="?android:attr/textAppearanceSmall"
                 />
@@ -81,7 +82,7 @@
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="left"
-               android:paddingLeft="20dp"
+               android:paddingLeft="8dp"
                android:text="@string/ssl_validator_no_info_about_error"
                android:textAppearance="?android:attr/textAppearanceSmall"
                 />
@@ -89,7 +90,7 @@
     <ScrollView 
         android:id="@+id/details_scroll"
         android:visibility="gone" 
-       android:padding="20dp"
+       android:padding="8dp"
         android:layout_width="match_parent"
         android:layout_height="0dp"
         android:layout_weight="1"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
                android:layout_weight="0"
-               android:paddingTop="@dimen/standard_padding"
+               android:paddingTop="16dp"
         android:text="@string/ssl_validator_question"
         android:textAppearance="?android:attr/textAppearanceMedium"
         >
 
                <android.support.v7.widget.AppCompatButton
             android:id="@+id/cancel"
-                       android:theme="@style/Button"
+                       style="@style/Button.Borderless"
             android:layout_width="0dp"
             android:layout_height="wrap_content"
             android:layout_weight="1"
-            android:text="@string/common_cancel" />
+            android:text="@string/common_no" />
 
                <android.support.v7.widget.AppCompatButton
             android:id="@+id/details_btn"
-                       android:theme="@style/Button"
+                       style="@style/Button.Borderless"
             android:layout_width="0dp"
             android:layout_height="wrap_content"
-            android:layout_weight="1"
+            android:layout_weight="2"
             android:text="@string/ssl_validator_btn_details_see" />
 
                <android.support.v7.widget.AppCompatButton
             android:id="@+id/ok"
-                       android:theme="@style/Button"
+                       style="@style/Button.Borderless"
             android:layout_width="0dp"
             android:layout_height="wrap_content"
             android:layout_weight="1"
-            android:text="@string/common_ok" />
+            android:text="@string/common_yes" />
 
     </LinearLayout>
 
index 88e49b4..4cbd46a 100644 (file)
     android:layout_height="wrap_content"
     android:gravity="center"
     android:orientation="vertical"
-       android:padding="@dimen/standard_padding">
+       android:padding="16dp">
 
        <TextView
                android:id="@+id/header"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
-        android:paddingBottom="@dimen/standard_padding"
                android:text="@string/ssl_validator_header"
+               android:paddingBottom="16dp"
                android:textAppearance="?android:attr/textAppearanceMedium"
-        />
-    
+               android:textColor="@color/black"
+                />
+
        <TextView
                android:id="@+id/reason_cert_not_trusted"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="left"
-               android:paddingLeft="20dp"
+               android:paddingLeft="8dp"
                android:text="@string/ssl_validator_reason_cert_not_trusted"
                android:textAppearance="?android:attr/textAppearanceSmall"
                 />
@@ -48,7 +49,7 @@
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="left"
-               android:paddingLeft="20dp"
+               android:paddingLeft="8dp"
                android:text="@string/ssl_validator_reason_cert_expired"
                android:textAppearance="?android:attr/textAppearanceSmall"
                 />
@@ -58,7 +59,7 @@
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="left"
-               android:paddingLeft="20dp"
+               android:paddingLeft="8dp"
                android:text="@string/ssl_validator_reason_cert_not_yet_valid"
                android:textAppearance="?android:attr/textAppearanceSmall"
                 />
@@ -68,7 +69,7 @@
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="left"
-               android:paddingLeft="20dp"
+               android:paddingLeft="8dp"
                android:text="@string/ssl_validator_reason_hostname_not_verified"
                android:textAppearance="?android:attr/textAppearanceSmall"
                 />
@@ -76,7 +77,7 @@
     <ScrollView 
         android:id="@+id/details_scroll"
         android:visibility="gone" 
-       android:padding="20dp"
+       android:padding="8dp"
         android:layout_width="wrap_content"
         android:layout_height="180dp">
         
@@ -94,7 +95,7 @@
                                        android:paddingBottom="5dp"
                                android:text="@string/ssl_validator_label_subject"
                                android:textAppearance="?android:attr/textAppearanceMedium"
-                                       />
+                       />
                                
                                <TextView
                                    android:id="@+id/label_subject_CN"
                                    android:layout_height="wrap_content"
                                    android:text="@string/ssl_validator_label_CN"
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                            
                                <TextView
                                    android:id="@+id/value_subject_CN"
                                    android:paddingBottom="5dp"
                                    android:text=""
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                                
                                <TextView
                                    android:id="@+id/label_subject_O"
                                    android:layout_height="wrap_content"
                                    android:text="@string/ssl_validator_label_O"
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                            
                                <TextView
                                    android:id="@+id/value_subject_O"
                                    android:paddingBottom="5dp"
                                    android:text=""
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                                
                                <TextView
                                    android:id="@+id/label_subject_OU"
                                    android:layout_height="wrap_content"
                                    android:text="@string/ssl_validator_label_OU"
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                            
                                <TextView
                                    android:id="@+id/value_subject_OU"
                                    android:paddingBottom="5dp"
                                    android:text=""
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                                
                                <TextView
                                    android:id="@+id/label_subject_ST"
                                    android:layout_height="wrap_content"
                                    android:text="@string/ssl_validator_label_ST"
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                            
                                <TextView
                                    android:id="@+id/value_subject_ST"
                                    android:paddingBottom="5dp"
                                    android:text=""
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
 
                                <TextView
                                    android:id="@+id/label_subject_C"
                                    android:layout_height="wrap_content"
                                    android:text="@string/ssl_validator_label_C"
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                                
                                <TextView
                                    android:id="@+id/value_subject_C"
                                    android:paddingBottom="5dp"
                                    android:text=""
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                                
                                <TextView
                                    android:id="@+id/label_subject_L"
                                    android:layout_height="wrap_content"
                                    android:text="@string/ssl_validator_label_L"
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                            
                                <TextView
                                    android:id="@+id/value_subject_L"
                                    android:text=""
                                    android:textAppearance="?android:attr/textAppearanceSmall"
                                />
+                           
 
                                <TextView
                                android:id="@+id/label_issuer"
                                        android:paddingBottom="5dp"
                                android:text="@string/ssl_validator_label_issuer"
                                android:textAppearance="?android:attr/textAppearanceMedium"
-                               />
+                       />
                                
                                <TextView
                                    android:id="@+id/label_issuer_CN"
                                    android:layout_height="wrap_content"
                                    android:text="@string/ssl_validator_label_CN"
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                            
                                <TextView
                                    android:id="@+id/value_issuer_CN"
                                    android:paddingBottom="5dp"
                                    android:text=""
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                                
                                <TextView
                                    android:id="@+id/label_issuer_O"
                                    android:layout_height="wrap_content"
                                    android:text="@string/ssl_validator_label_O"
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                            
                                <TextView
                                    android:id="@+id/value_issuer_O"
                                    android:paddingBottom="5dp"
                                    android:text=""
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                                
                                <TextView
                                    android:id="@+id/label_issuer_OU"
                                    android:layout_height="wrap_content"
                                    android:text="@string/ssl_validator_label_OU"
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                            
                                <TextView
                                    android:id="@+id/value_issuer_OU"
                                    android:paddingBottom="5dp"
                                    android:text=""
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                                
                                <TextView
                                    android:id="@+id/label_issuer_ST"
                                    android:layout_height="wrap_content"
                                    android:text="@string/ssl_validator_label_ST"
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                            
                                <TextView
                                    android:id="@+id/value_issuer_ST"
                                    android:paddingBottom="5dp"
                                    android:text=""
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
 
                                <TextView
                                    android:id="@+id/label_issuer_C"
                                    android:layout_height="wrap_content"
                                    android:text="@string/ssl_validator_label_C"
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                                
                                <TextView
                                    android:id="@+id/value_issuer_C"
                                    android:paddingBottom="5dp"
                                    android:text=""
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                                
                                <TextView
                                    android:id="@+id/label_issuer_L"
                                    android:layout_height="wrap_content"
                                    android:text="@string/ssl_validator_label_L"
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                            
                                <TextView
                                    android:id="@+id/value_issuer_L"
                                    android:paddingBottom="5dp"
                                    android:text=""
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                            
                                <TextView
                                android:id="@+id/label_validity"
                                        android:paddingBottom="5dp"
                                android:text="@string/ssl_validator_label_validity"
                                android:textAppearance="?android:attr/textAppearanceMedium"
-                               />
+                       />
                                
                                <TextView
                                    android:id="@+id/label_validity_from"
                                    android:layout_height="wrap_content"
                                    android:text="@string/ssl_validator_label_validity_from"
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                            
                                <TextView
                                    android:id="@+id/value_validity_from"
                                    android:paddingBottom="5dp"
                                    android:text=""
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                                
                                <TextView
                                    android:id="@+id/label_validity_to"
                                    android:layout_height="wrap_content"
                                    android:text="@string/ssl_validator_label_validity_to"
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
                            
                                <TextView
                                    android:id="@+id/value_validity_to"
                                    android:paddingBottom="5dp"
                                    android:text=""
                                    android:textAppearance="?android:attr/textAppearanceSmall"
-                                       />
+                               />
+                               
 
                                <TextView
                                android:id="@+id/label_signature"
                                        android:paddingBottom="5dp"
                                android:text="@string/ssl_validator_label_signature"
                                android:textAppearance="?android:attr/textAppearanceMedium"
-                               />
+                       />
                                
                                <TextView
                                android:id="@+id/label_signature_algorithm"
                                android:layout_height="wrap_content"
                                android:text="@string/ssl_validator_label_signature_algorithm"
                                android:textAppearance="?android:attr/textAppearanceSmall"
-                               />
+                       />
                                
-                               <TextView
+                                                               <TextView
                                android:id="@+id/value_signature_algorithm"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                        android:paddingBottom="5dp"
                                android:text=""
                                android:textAppearance="?android:attr/textAppearanceSmall"
-                               />
-
+                       />
+                                                                                                                                                                                               
+                                                               
                                <TextView
                                android:id="@+id/value_signature"
                                android:layout_width="wrap_content"
                                        android:paddingBottom="5dp"
                                android:text=""
                                android:textAppearance="?android:attr/textAppearanceSmall"
-                               />
+                       />
                                
                </LinearLayout>
                
         android:id="@+id/question"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:paddingTop="@dimen/standard_padding"
+               android:paddingTop="16dp"
         android:text="@string/ssl_validator_question"
         android:textAppearance="?android:attr/textAppearanceMedium"
         >
 
                <android.support.v7.widget.AppCompatButton
             android:id="@+id/cancel"
-                       android:theme="@style/Button"
+                       style="@style/Button.Borderless"
             android:layout_width="0dp"
             android:layout_height="wrap_content"
             android:layout_weight="1"
-            android:text="@string/common_cancel" />
+            android:text="@string/common_no" />
 
                <android.support.v7.widget.AppCompatButton
             android:id="@+id/details_btn"
-                       android:theme="@style/Button"
+                       style="@style/Button.Borderless"
             android:layout_width="0dp"
             android:layout_height="wrap_content"
-            android:layout_weight="1"
+            android:layout_weight="2"
             android:text="@string/ssl_validator_btn_details_see" />
 
                <android.support.v7.widget.AppCompatButton
             android:id="@+id/ok"
-                       android:theme="@style/Button"
+                       style="@style/Button.Borderless"
             android:layout_width="0dp"
             android:layout_height="wrap_content"
             android:layout_weight="1"
-            android:text="@string/common_ok" />
+            android:text="@string/common_yes" />
 
     </LinearLayout>
 
index 42c4103..2491ad2 100644 (file)
   <string name="confirmation_remove_alert">Möchten Sie %1$s wirklich löschen?</string>
   <string name="confirmation_remove_folder_alert">Möchten Sie wirklich %1$s und dessen Inhalte entfernen?</string>
   <string name="confirmation_remove_local">Nur lokal</string>
-  <string name="confirmation_remove_folder_local">Nur lokale Inhalte</string>
-  <string name="confirmation_remove_remote">Vom Server entfernen</string>
-  <string name="confirmation_remove_remote_and_local">Lokal und auf Server</string>
+  <string name="confirmation_remove_folder_local">Nur lokal</string>
+  <string name="confirmation_remove_remote">Vom Server</string>
+  <string name="confirmation_remove_remote_and_local">Lokal &amp; Server</string>
   <string name="remove_success_msg">Erfolgreich gelöscht</string>
   <string name="remove_fail_msg">Der Löschvorgang konnte nicht beendet werden</string>
   <string name="rename_dialog_title">Geben Sie einen neuen Namen ein</string>
   <string name="ssl_validator_question">Möchten Sie diesem Zertifikat trotzdem vertrauen?</string>
   <string name="ssl_validator_not_saved">Das Zertifikat konnte nicht gespeichert werden</string>
   <string name="ssl_validator_btn_details_see">Details</string>
-  <string name="ssl_validator_btn_details_hide">Ausblenden</string>
+  <string name="ssl_validator_btn_details_hide">Überblick</string>
   <string name="ssl_validator_label_subject">Ausgestellt für:</string>
   <string name="ssl_validator_label_issuer">Ausgestellt von:</string>
   <string name="ssl_validator_label_CN">Üblicher Name:</string>
index 4d0b86e..d669ec3 100644 (file)
   <string name="confirmation_remove_alert">Möchtest Du %1$s wirklich löschen?</string>
   <string name="confirmation_remove_folder_alert">Möchtest Du wirklich %1$s und dessen Inhalte entfernen?</string>
   <string name="confirmation_remove_local">Nur lokal</string>
-  <string name="confirmation_remove_folder_local">Nur lokale Inhalte</string>
-  <string name="confirmation_remove_remote">Vom Server entfernen</string>
-  <string name="confirmation_remove_remote_and_local">Lokal und auf Server</string>
+  <string name="confirmation_remove_folder_local">Nur lokal</string>
+  <string name="confirmation_remove_remote">Vom Server</string>
+  <string name="confirmation_remove_remote_and_local">Lokal &amp; Server</string>
   <string name="remove_success_msg">Erfolgreich gelöscht</string>
   <string name="remove_fail_msg">Der Löschvorgang konnte nicht beendet werden</string>
   <string name="rename_dialog_title">Gib einen neuen Namen ein</string>
index 2de204d..a5d412b 100644 (file)
     <string name="confirmation_remove_alert">"Do you really want to remove %1$s?"</string>
     <string name="confirmation_remove_folder_alert">"Do you really want to remove %1$s and its contents?"</string>
     <string name="confirmation_remove_local">Local only</string>
-    <string name="confirmation_remove_folder_local">Local contents only</string>
-    <string name="confirmation_remove_remote">Remove from server</string>
-    <string name="confirmation_remove_remote_and_local">Remote and local</string>
+    <string name="confirmation_remove_folder_local">Local only</string>
+    <string name="confirmation_remove_remote">From server</string>
+    <string name="confirmation_remove_remote_and_local">Remote &amp; local</string>
     <string name="remove_success_msg">"Removal succeeded"</string>
     <string name="remove_fail_msg">"Removal failed"</string>
     <string name="rename_dialog_title">Enter a new name</string>
index 1716a50..3bb1fe4 100644 (file)
                <item name="android:textColor">@color/white</item>
        </style>
 
+       <style name="Button.Borderless" parent="Base.Widget.AppCompat.Button.Borderless">
+               <item name="android:textColor">@color/color_accent</item>
+       </style>
+
        <!-- separat translucent action bar style -->
        <style name="Theme.ownCloud.Overlay" parent="style/Theme.ownCloud">
                <item name="android:actionBarStyle">@style/Theme.ownCloud.Overlay.ActionBar</item>
index 72f40f9..28419e6 100644 (file)
@@ -39,6 +39,8 @@ import com.owncloud.android.ui.dialog.ConfirmationDialogFragment.ConfirmationDia
 public class RemoveFileDialogFragment extends ConfirmationDialogFragment 
 implements ConfirmationDialogFragmentListener {
 
+    private OCFile mTargetFile;
+
     private static final String ARG_TARGET_FILE = "TARGET_FILE";
 
     /**
@@ -54,29 +56,26 @@ implements ConfirmationDialogFragmentListener {
         int messageStringId = R.string.confirmation_remove_alert;
         
         int posBtn = R.string.confirmation_remove_remote;
-        int neuBtn = -1;
+        int negBtn = -1;
         if (file.isFolder()) {
             messageStringId = R.string.confirmation_remove_folder_alert;
             posBtn = R.string.confirmation_remove_remote_and_local;
-            neuBtn = R.string.confirmation_remove_folder_local;
+            negBtn = R.string.confirmation_remove_local;
         } else if (file.isDown()) {
             posBtn = R.string.confirmation_remove_remote_and_local;
-            neuBtn = R.string.confirmation_remove_local;
+            negBtn = R.string.confirmation_remove_local;
         }
         
-        
         args.putInt(ARG_CONF_RESOURCE_ID, messageStringId);
         args.putStringArray(ARG_CONF_ARGUMENTS, new String[]{file.getFileName()});
         args.putInt(ARG_POSITIVE_BTN_RES, posBtn);
-        args.putInt(ARG_NEUTRAL_BTN_RES, neuBtn);
-        args.putInt(ARG_NEGATIVE_BTN_RES, R.string.common_cancel);
+        args.putInt(ARG_NEUTRAL_BTN_RES, R.string.common_no);
+        args.putInt(ARG_NEGATIVE_BTN_RES, negBtn);
         args.putParcelable(ARG_TARGET_FILE, file);
         frag.setArguments(args);
         
         return frag;
     }
-
-    private OCFile mTargetFile;
     
     @Override
     public Dialog onCreateDialog(Bundle savedInstanceState) {
@@ -104,7 +103,7 @@ implements ConfirmationDialogFragmentListener {
      * Performs the removal of the local copy of the target file
      */
     @Override
-    public void onNeutral(String callerTag) {
+    public void onCancel(String callerTag) {
         ComponentsGetter cg = (ComponentsGetter)getActivity();
         cg.getFileOperationsHelper().removeFile(mTargetFile, true);
         
@@ -138,8 +137,7 @@ implements ConfirmationDialogFragmentListener {
     }
 
     @Override
-    public void onCancel(String callerTag) {
+    public void onNeutral(String callerTag) {
         // nothing to do here
     }
-    
 }
\ No newline at end of file