Final fix for #266

-Fix implemented using setIcon() as setIconAttribute() is not valid for
API less than 11
This commit is contained in:
Nikhil Peter Raj 2014-02-26 00:29:01 +05:30
parent c77aff6fc2
commit fa6ea57121
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ public class DeleteFileDialogFragment extends DialogFragment {
AlertDialog.Builder alert = new AlertDialog.Builder(activity); AlertDialog.Builder alert = new AlertDialog.Builder(activity);
alert.setIconAttribute(android.R.attr.alertDialogIcon); alert.setIcon(R.drawable.ic_dialog_alert_holo_light);
alert.setTitle(R.string.warning); alert.setTitle(R.string.warning);
alert.setMessage(this.getString(R.string.file_delete_confirmation, deleteFile)); alert.setMessage(this.getString(R.string.file_delete_confirmation, deleteFile));

View File

@ -100,7 +100,7 @@ public class DeleteKeyDialogFragment extends DialogFragment {
builder.setMessage(R.string.key_deletion_confirmation_multi); builder.setMessage(R.string.key_deletion_confirmation_multi);
} }
builder.setIconAttribute(android.R.attr.alertDialogIcon); builder.setIcon(R.drawable.ic_dialog_alert_holo_light);
builder.setPositiveButton(R.string.btn_delete, new DialogInterface.OnClickListener() { builder.setPositiveButton(R.string.btn_delete, new DialogInterface.OnClickListener() {
@Override @Override