mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
put ok/cancel buttons back on player edit dialog. Just feels better
that way.
This commit is contained in:
parent
ea07f92b28
commit
f1f5b63a0d
1 changed files with 18 additions and 9 deletions
|
@ -127,15 +127,16 @@ public class GameConfig extends Activity implements View.OnClickListener {
|
|||
dialog = new AlertDialog.Builder( this )
|
||||
.setTitle(R.string.player_edit_title)
|
||||
.setView(playerEditView)
|
||||
.setPositiveButton( R.string.button_ok,
|
||||
new DialogInterface.OnClickListener() {
|
||||
public void onClick( DialogInterface dlg,
|
||||
int whichButton ) {
|
||||
getPlayerSettings();
|
||||
loadPlayers();
|
||||
}
|
||||
})
|
||||
.setNegativeButton( R.string.button_cancel, null )
|
||||
.create();
|
||||
dialog.setOnDismissListener( new DialogInterface.OnDismissListener() {
|
||||
@Override
|
||||
public void onDismiss( DialogInterface di )
|
||||
{
|
||||
getPlayerSettings();
|
||||
loadPlayers();
|
||||
}
|
||||
});
|
||||
break;
|
||||
case ROLE_EDIT_RELAY:
|
||||
case ROLE_EDIT_SMS:
|
||||
|
@ -159,6 +160,14 @@ public class GameConfig extends Activity implements View.OnClickListener {
|
|||
.setTitle( R.string.force_title )
|
||||
.setView( LayoutInflater.from(this)
|
||||
.inflate( layoutForDlg(id), null ) )
|
||||
.setPositiveButton( R.string.button_ok,
|
||||
new DialogInterface.OnClickListener() {
|
||||
public void onClick( DialogInterface dlg,
|
||||
int whichButton ) {
|
||||
loadPlayers();
|
||||
}
|
||||
})
|
||||
.setNegativeButton( R.string.button_cancel, null )
|
||||
.create();
|
||||
dialog.setOnDismissListener( new DialogInterface.OnDismissListener() {
|
||||
@Override
|
||||
|
@ -168,8 +177,8 @@ public class GameConfig extends Activity implements View.OnClickListener {
|
|||
// force one to remote -- or make it
|
||||
// standalone???
|
||||
m_gi.players[0].isLocal = false;
|
||||
loadPlayers();
|
||||
}
|
||||
loadPlayers();
|
||||
}
|
||||
});
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue