Prevent accidental dismissal of error dialog.

This commit is contained in:
James Sanford 2012-10-23 16:45:37 -07:00
parent 0e2ec5d590
commit e1ffa85baf

View File

@ -190,8 +190,9 @@ public class KegsMain extends Activity implements KegsKeyboard.StickyReset, Asse
public Dialog onCreateDialog(Bundle savedInstanceState) {
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
builder.setMessage(getResources().getText(R.string.rom_error));
// TODO setCanceledOnTouchOutside(false) ? otherwise can accidentally dismiss the error.
return builder.create();
final AlertDialog dialog = builder.create();
dialog.setCanceledOnTouchOutside(false); // prevent accidental dismissal
return dialog;
}
@Override