@@ -0,0 +1,1501 @@
+package de.fau.amos.virtualledger.android.views.contacts.Delete;%0A%0Aimport android.app.Activity;%0Aimport android.app.AlertDialog;%0Aimport android.content.Context;%0Aimport android.content.DialogInterface;%0A%0Aimport de.fau.amos.virtualledger.dtos.Contact;%0A%0A/**%0A * Created by Simon on 18.07.2017.%0A */%0A%0Apublic class ContactsDeleteDialog %7B%0A%0A    private Activity activity;%0A    private Context context;%0A    private Contact contact;%0A%0A    public ContactsDeleteDialog(Activity activity, Context context, Contact contact) %7B%0A        this.activity = activity;%0A        this.context = context;%0A        this.contact = contact;%0A    %7D%0A%0A    public void show() %7B%0A        final AlertDialog.Builder alert = new AlertDialog.Builder(context);%0A        alert.setTitle(%22DELETE CONFIRMATION%22);%0A        alert.setMessage(%22Are you sure to delete %22 + this.contact.getFirstName()+%22 from your contact List?%22);%0A        alert.setPositiveButton(%22yes%22, new DialogInterface.OnClickListener() %7B%0A%0A            @Override%0A            public void onClick(DialogInterface dialog, int which) %7B%0A                dialog.dismiss();%0A                ContactsDeleteAction deleteAction = new ContactsDeleteAction(activity, contact);%0A                deleteAction.delete();%0A            %7D%0A        %7D);%0A        alert.setNegativeButton(%22NO%22, new DialogInterface.OnClickListener() %7B%0A%0A            @Override%0A            public void onClick(DialogInterface dialog, int which) %7B%0A%0A                dialog.dismiss();%0A            %7D%0A        %7D);%0A%0A        alert.show();%0A%0A    %7D%0A%0A%0A%7D%0A

Delete dialog for deleting contacts