get rid of save button: dismiss to save.

This commit is contained in:
eehouse 2010-03-08 06:15:14 +00:00
parent 4bbda7ad6e
commit 285e1b47d5

View file

@ -125,19 +125,18 @@ public class GameConfig extends Activity implements View.OnClickListener {
final View playerEditView
= factory.inflate( R.layout.player_edit, null );
dlpos = new DialogInterface.OnClickListener() {
public void onClick( DialogInterface dialog,
int whichButton ) {
getPlayerSettings();
loadPlayers();
}
};
dialog = new AlertDialog.Builder( this )
.setTitle(R.string.player_edit_title)
.setView(playerEditView)
.setPositiveButton(R.string.button_save, dlpos )
.create();
dialog.setOnDismissListener( new DialogInterface.OnDismissListener() {
@Override
public void onDismiss( DialogInterface di )
{
getPlayerSettings();
loadPlayers();
}
});
break;
case ROLE_EDIT_RELAY:
case ROLE_EDIT_SMS: