mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
get rid of save button in comms config dialog
This commit is contained in:
parent
a727c3bb2b
commit
846f07e929
3 changed files with 10 additions and 17 deletions
|
@ -49,7 +49,6 @@
|
|||
<string name="button_cancel">Cancel·la</string>
|
||||
<string name="button_yes">Sí</string>
|
||||
<string name="button_no">No</string>
|
||||
<string name="button_save">Desa</string>
|
||||
|
||||
<string name="player_label">Nom:</string>
|
||||
<string name="game_config_open">Obre</string>
|
||||
|
|
|
@ -50,7 +50,6 @@
|
|||
<string name="button_cancel">Cancel</string>
|
||||
<string name="button_yes">Yes</string>
|
||||
<string name="button_no">No</string>
|
||||
<string name="button_save">Save</string>
|
||||
|
||||
<string name="player_label">Name:</string>
|
||||
<string name="game_config_open">Open</string>
|
||||
|
|
|
@ -141,23 +141,18 @@ public class GameConfig extends Activity implements View.OnClickListener {
|
|||
case ROLE_EDIT_RELAY:
|
||||
case ROLE_EDIT_SMS:
|
||||
case ROLE_EDIT_BT:
|
||||
factory = LayoutInflater.from(this);
|
||||
final View roleEditView
|
||||
= factory.inflate( layoutForDlg(id), null );
|
||||
|
||||
dlpos = new DialogInterface.OnClickListener() {
|
||||
public void onClick( DialogInterface dialog,
|
||||
int whichButton ) {
|
||||
dialog = new AlertDialog.Builder( this )
|
||||
.setTitle(titleForDlg(id))
|
||||
.setView( LayoutInflater.from(this)
|
||||
.inflate( layoutForDlg(id), null ))
|
||||
.create();
|
||||
dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
|
||||
@Override
|
||||
public void onDismiss( DialogInterface di )
|
||||
{
|
||||
getRoleSettings();
|
||||
}
|
||||
};
|
||||
|
||||
dialog = new AlertDialog.Builder( this )
|
||||
// .setIcon(R.drawable.alert_dialog_icon)
|
||||
.setTitle(titleForDlg(id))
|
||||
.setView(roleEditView)
|
||||
.setPositiveButton(R.string.button_save, dlpos )
|
||||
.create();
|
||||
});
|
||||
break;
|
||||
|
||||
case FORCE_REMOTE:
|
||||
|
|
Loading…
Add table
Reference in a new issue