Permalink
Browse files

Delete unnecessary code

Signed-off-by: simonewebdesign <hello@simonewebdesign.it>
  • Loading branch information...
1 parent 3e76ee8 commit 2ae6ee880ac96b280f4cc89e74d106fbc2935215 @simonewebdesign committed Mar 7, 2013
Showing with 1 addition and 13 deletions.
  1. +1 −13 src/com/example/todolist/ItemViewDialogFragment.java
@@ -16,19 +16,7 @@ public Dialog onCreateDialog(Bundle savedInstanceState) {
// Use the Builder class for convenient dialog construction
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
- builder.setMessage("cancellare?")
- .setPositiveButton("si", new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int id) {
- // FIRE ZE MISSILES!
- Log.v(TAG, "IMMA FIRIN MAH LAZOR!");
- }
- })
- .setNegativeButton("no", new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int id) {
- // User cancelled the dialog
- }
- })
- .setItems(R.array.actions_array, new DialogInterface.OnClickListener() {
+ builder.setItems(R.array.actions_array, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
// The 'which' argument contains the index position
// of the selected item

0 comments on commit 2ae6ee8

Please sign in to comment.