From 285e1b47d5392e4d63babd5ee3871b5cc9db97e2 Mon Sep 17 00:00:00 2001 From: eehouse Date: Mon, 8 Mar 2010 06:15:14 +0000 Subject: [PATCH] get rid of save button: dismiss to save. --- .../src/org/eehouse/android/xw4/GameConfig.java | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 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 1028b2f54..8d0dd3da4 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfig.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfig.java @@ -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: