]>
Commit | Line | Data |
---|---|---|
46e6c000 PT |
1 | package ro.ieval.unical; |
2 | ||
3 | import android.app.AlertDialog; | |
4 | import android.app.Dialog; | |
5 | import android.app.DialogFragment; | |
6 | import android.content.DialogInterface; | |
7 | import android.os.Bundle; | |
8 | ||
5cf4714f | 9 | public final class DeleteEventDialog extends DialogFragment { |
46e6c000 | 10 | @Override |
5cf4714f MG |
11 | public Dialog onCreateDialog(final Bundle savedInstanceState) { |
12 | final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); | |
46e6c000 PT |
13 | builder.setMessage(R.string.askdeleteevent) |
14 | .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() { | |
8a817995 MG |
15 | @Override |
16 | public void onClick(final DialogInterface dialog, final int id) { | |
46e6c000 PT |
17 | } |
18 | }) | |
19 | .setNegativeButton(R.string.no, new DialogInterface.OnClickListener() { | |
8a817995 MG |
20 | @Override |
21 | public void onClick(final DialogInterface dialog, final int id) { | |
46e6c000 PT |
22 | // User cancelled the dialog |
23 | } | |
24 | }); | |
46e6c000 PT |
25 | return builder.create(); |
26 | } | |
27 | } |