add ok/cancel to relay/sms config dialog

This commit is contained in:
eehouse 2010-04-08 04:13:23 +00:00
parent f1f5b63a0d
commit 1deda80a9c

View file

@ -145,14 +145,15 @@ public class GameConfig extends Activity implements View.OnClickListener {
.setTitle(titleForDlg(id)) .setTitle(titleForDlg(id))
.setView( LayoutInflater.from(this) .setView( LayoutInflater.from(this)
.inflate( layoutForDlg(id), null )) .inflate( layoutForDlg(id), null ))
.create(); .setPositiveButton( R.string.button_ok,
dialog.setOnDismissListener(new DialogInterface.OnDismissListener() { new DialogInterface.OnClickListener() {
@Override public void onClick( DialogInterface dlg,
public void onDismiss( DialogInterface di ) int whichButton ) {
{
getRoleSettings(); getRoleSettings();
} }
}); })
.setNegativeButton( R.string.button_cancel, null )
.create();
break; break;
case FORCE_REMOTE: case FORCE_REMOTE: