mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-02 06:20:14 +01:00
get rid of save button: dismiss to save.
This commit is contained in:
parent
4bbda7ad6e
commit
285e1b47d5
1 changed files with 8 additions and 9 deletions
|
@ -125,19 +125,18 @@ public class GameConfig extends Activity implements View.OnClickListener {
|
||||||
final View playerEditView
|
final View playerEditView
|
||||||
= factory.inflate( R.layout.player_edit, null );
|
= 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 )
|
dialog = new AlertDialog.Builder( this )
|
||||||
.setTitle(R.string.player_edit_title)
|
.setTitle(R.string.player_edit_title)
|
||||||
.setView(playerEditView)
|
.setView(playerEditView)
|
||||||
.setPositiveButton(R.string.button_save, dlpos )
|
|
||||||
.create();
|
.create();
|
||||||
|
dialog.setOnDismissListener( new DialogInterface.OnDismissListener() {
|
||||||
|
@Override
|
||||||
|
public void onDismiss( DialogInterface di )
|
||||||
|
{
|
||||||
|
getPlayerSettings();
|
||||||
|
loadPlayers();
|
||||||
|
}
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
case ROLE_EDIT_RELAY:
|
case ROLE_EDIT_RELAY:
|
||||||
case ROLE_EDIT_SMS:
|
case ROLE_EDIT_SMS:
|
||||||
|
|
Loading…
Reference in a new issue