save phony "new game" even if names not set

This commit is contained in:
ehouse 2010-01-13 12:57:02 +00:00
parent cf60be5082
commit b2f0b91a23

View file

@ -1,3 +1,5 @@
/* -*- compile-command: "cd ../../../../../; ant reinstall"; -*- */
/*
* Copyright (C) 2007 The Android Open Source Project
*
@ -136,7 +138,6 @@ public class GameConfig extends Activity implements View.OnClickListener {
text = et.getText();
String name2 = text.toString();
if ( name1.length() > 0 && name2.length() > 0 ) {
Integer num = 0;
int ii;
String[] files = fileList();
@ -152,7 +153,6 @@ public class GameConfig extends Activity implements View.OnClickListener {
}
}
}
Utils.logf( "using name " + name );
FileOutputStream out;
try {
@ -169,7 +169,6 @@ public class GameConfig extends Activity implements View.OnClickListener {
} catch ( java.io.FileNotFoundException ex ) {
Utils.logf( "got FileNotFoundException: " + ex.toString() );
}
}
setResult( 1 );
finish();