From 1deda80a9c26cbfd2ad1cb9168e6e724cc45027b Mon Sep 17 00:00:00 2001 From: eehouse Date: Thu, 8 Apr 2010 04:13:23 +0000 Subject: [PATCH] add ok/cancel to relay/sms config dialog --- .../src/org/eehouse/android/xw4/GameConfig.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfig.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfig.java index f640a2145..aa559d988 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfig.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfig.java @@ -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: