Fixed compatibility issue in local deletion and text typo

This commit is contained in:
David A. Velasco 2012-07-30 09:46:24 +02:00
parent f0fb5848f2
commit e8852fa725
3 changed files with 5 additions and 3 deletions

View file

@ -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" />

View file

@ -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>

View file

@ -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,