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: