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))
.setView( LayoutInflater.from(this)
.inflate( layoutForDlg(id), null ))
.setPositiveButton( R.string.button_ok,
new DialogInterface.OnClickListener() {
public void onClick( DialogInterface dlg,
int whichButton ) {
getRoleSettings();
}
})
.setNegativeButton( R.string.button_cancel, null )
.create();
dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public void onDismiss( DialogInterface di )
{
getRoleSettings();
}
});
break;
case FORCE_REMOTE: