浏览代码

Fixed compatibility issue in local deletion and text typo

David A. Velasco 13 年之前
父节点
当前提交
e8852fa725

+ 1 - 1
AndroidManifest.xml

@@ -18,7 +18,7 @@
  -->
 <manifest package="eu.alefzero.owncloud"
     android:versionCode="1"
-    android:versionName="0.1.188B" xmlns:android="http://schemas.android.com/apk/res/android">
+    android:versionName="0.1.189B" 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 - 1
res/values/strings.xml

@@ -150,7 +150,7 @@
     
 	  <string name="confirmation_remove_alert">"Do you really want to remove %1$s ?"</string>
 	  <string name="confirmation_remove_local">Local only</string>
-	  <string name="confirmation_remove_remote">Remove form server</string>
+	  <string name="confirmation_remove_remote">Remove from server</string>
 	  <string name="confirmation_remove_remote_and_local">Both remote and local</string>
 
     <string name="remove_success_msg">"Successful removal"</string>

+ 3 - 1
src/eu/alefzero/owncloud/ui/fragment/ConfirmationDialogFragment.java

@@ -53,8 +53,10 @@ public class ConfirmationDialogFragment extends SherlockDialogFragment {
         AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())
             .setIcon(android.R.drawable.ic_dialog_alert)
             .setMessage(String.format(getString(resourceId), confirmationTarget))
-            .setIconAttribute(android.R.attr.alertDialogIcon)
             .setTitle(android.R.string.dialog_alert_title);
+        if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) {
+            builder.setIconAttribute(android.R.attr.alertDialogIcon);
+        }
         
         if (posBtn != -1)
             builder.setPositiveButton(posBtn,