mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-25 16:38:50 -05:00
Final fix for #266
-Fix implemented using setIcon() as setIconAttribute() is not valid for API less than 11
This commit is contained in:
parent
c77aff6fc2
commit
fa6ea57121
@ -62,7 +62,7 @@ public class DeleteFileDialogFragment extends DialogFragment {
|
||||
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.setMessage(this.getString(R.string.file_delete_confirmation, deleteFile));
|
||||
|
||||
|
@ -100,7 +100,7 @@ public class DeleteKeyDialogFragment extends DialogFragment {
|
||||
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() {
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user