package csuf.cs544.hw1.dialogs;

import android.R;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;

public class ErrorDialogFragment extends DialogFragment {
	
    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
    	String message = getArguments().getString("error");
        return new AlertDialog.Builder(getActivity())
                //.setIcon(R.drawable.alert_dialog_icon)
                .setTitle("Error")
                .setMessage(message)
                .setPositiveButton("Okay",
                    new DialogInterface.OnClickListener() {
                        public void onClick(DialogInterface dialog, int whichButton) {
                        	 
                        }
                    }
                ).create();
    }
}


@@ -148,49 +148,8 @@
 t;%0D%0A
-import android.content.DialogInterface;%0D%0A
 impo
@@ -171,16 +171,16 @@
 undle;%0D%0A
+
 %0D%0Apublic
@@ -511,21 +511,17 @@
 tTitle(%22
-Error
+e
 %22)%0D%0A    
@@ -600,253 +600,13 @@
 ay%22,
-%0D%0A                    new DialogInterface.OnClickListener() %7B%0D%0A                        public void onClick(DialogInterface dialog, int whichButton) %7B%0D%0A                        %09 %0D%0A                        %7D%0D%0A                    %7D%0D%0A                
+ null
 ).cr

Use null input handler for ErrorDialog; none needed