get rid of save button in comms config dialog

This commit is contained in:
eehouse 2010-03-09 06:29:49 +00:00
parent a727c3bb2b
commit 846f07e929
3 changed files with 10 additions and 17 deletions

View file

@ -49,7 +49,6 @@
<string name="button_cancel">Cancel·la</string>
<string name="button_yes"></string>
<string name="button_no">No</string>
<string name="button_save">Desa</string>
<string name="player_label">Nom:</string>
<string name="game_config_open">Obre</string>

View file

@ -50,7 +50,6 @@
<string name="button_cancel">Cancel</string>
<string name="button_yes">Yes</string>
<string name="button_no">No</string>
<string name="button_save">Save</string>
<string name="player_label">Name:</string>
<string name="game_config_open">Open</string>

View file

@ -141,23 +141,18 @@ public class GameConfig extends Activity implements View.OnClickListener {
case ROLE_EDIT_RELAY:
case ROLE_EDIT_SMS:
case ROLE_EDIT_BT:
factory = LayoutInflater.from(this);
final View roleEditView
= factory.inflate( layoutForDlg(id), null );
dlpos = new DialogInterface.OnClickListener() {
public void onClick( DialogInterface dialog,
int whichButton ) {
dialog = new AlertDialog.Builder( this )
.setTitle(titleForDlg(id))
.setView( LayoutInflater.from(this)
.inflate( layoutForDlg(id), null ))
.create();
dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public void onDismiss( DialogInterface di )
{
getRoleSettings();
}
};
dialog = new AlertDialog.Builder( this )
// .setIcon(R.drawable.alert_dialog_icon)
.setTitle(titleForDlg(id))
.setView(roleEditView)
.setPositiveButton(R.string.button_save, dlpos )
.create();
});
break;
case FORCE_REMOTE: